119 Commits

Author SHA1 Message Date
Artem Tiumentcev
5ca09f16f8 Fixed issue re-setup the network
Then you scale nodes down or up,
network re-setup

Change-Id: Iad68e5e7a7c3d197576aec980943aff40d4c2b50
2017-02-09 18:22:58 +03:00
Artem Tiumentcev
2d32a114e8 Fixed: Wrong place for line
Change-Id: I534d94c19c64d328ef969362c925c7f4e29226a2
2016-12-02 19:20:33 +03:00
Jenkins
7c09cfc263 Merge "[k8s] Add Dashboard UI v1.4 addon to K8s Cluster" 2016-10-12 07:38:24 +00:00
archyufa
dbd958d31d [k8s] Add Dashboard UI v1.4 addon to K8s Cluster
This patch introduces kubernetes-dashboard addon
to k8s murano application.
By default this option is enabled, but user can
disable it in dynamic UI corresponding form

Co-Authored-By: ddovbii <ddovbii@mirantis.com>

Change-Id: Id03aed1c5e3c356421beef7b5110d03c2f07d47d
2016-10-11 16:56:27 +00:00
Peter Razumovsky
f9b2710b87 Fix changing DOCKER_OPTS for DSH and KubeCluster
Currently DOCKER_OPTS incorrectly changed with insecure-registry and
registry-mirror opts (setupDockerRegistry and setupDockerMirror
scripts): opts aren't wrapped with quotes after changing.

Change-Id: I3265953cc6e6d9de75fa4ba185059cd75c06181c
Closes-bug: #1628405
2016-10-11 13:51:45 +00:00
Jenkins
9cfc7e23e9 Merge "[k8s] Add KubeDns addon to K8s Cluster" 2016-10-11 08:50:25 +00:00
Jenkins
2dd972b805 Merge "[K8s] Create service folders for addons and configs" 2016-10-11 08:50:21 +00:00
archyufa
6b27f02c55 [k8s] Add KubeDns addon to K8s Cluster
This patch introduce kubeDns addon support in murano k8s app.
The docs of how kubeDns works and how it can be checked are
here:

https://github.com/kubernetes/kubernetes/blob/master/build/kube-dns/README.md#how-do-i-test-if-it-is-working

Co-Authored-By: ddovbii <ddovbii@mirantis.com>
Change-Id: I77b400ffd059a326b8fa051e038706370cbf6aaf
2016-10-07 22:46:39 +03:00
Dmytro Dovbii
df281eb66c [K8s] Create service folders for addons and configs
This patch creates directory for kubernetes addons
and put kubeconfig.yaml file to k8s nodes

Change-Id: I943724b71151de2ce6e95259ddab3d596b94e214
2016-10-07 22:46:39 +03:00
Tetiana Lashchova
17237b6eb3 Clarify description for Docker mirror and registry
Change-Id: Ia95ad163eb978dd0db5ddc21c901f5ac8877cef9
Closes-Bug: #1630585
2016-10-05 16:33:22 +03:00
Sergey Kraynev
addf159f6c Add 1.0.0 version of package to description
Change-Id: I8724dcef0ed390094a3be21f9a6759f3f055aae1
2016-09-27 18:35:52 +03:00
Jenkins
a98d3a6c08 Merge "Revert "Pin stable/mitaka to 1.0.0 version"" 2016-09-27 15:09:50 +00:00
Jenkins
251606b434 Merge "Revert "Add missed parts of providing versioning to stable/mitaka"" 2016-09-27 15:05:39 +00:00
Sergey Kraynev
0b914ee8fe Revert "Pin stable/mitaka to 1.0.0 version"
This reverts commit 2860fb3a968d72521fb705aaac5962f46a5cf487.

Change-Id: Ibb251a25d02ca3905c0f6f5d1ee70d523f5fcf81
2016-09-27 14:58:42 +00:00
Sergey Kraynev
aa0b74f906 Revert "Add missed parts of providing versioning to stable/mitaka"
This reverts commit 437183a3c70cef36d9451a1b5e30e2aaf9f26417.

Change-Id: I47926599432708df4186f724f1ce582444b6add4
2016-09-27 14:57:59 +00:00
Jenkins
87cc7949b7 Merge "Pin stable/mitaka to 1.0.0 version" 2016-09-27 09:02:48 +00:00
Jenkins
3a7e454639 Merge "Add missed parts of providing versioning to stable/mitaka" 2016-09-27 09:02:43 +00:00
Dmytro Dovbii
437183a3c7 Add missed parts of providing versioning to stable/mitaka
Change-Id: Ife9de7da408f340c5a855be3281e4a8ca55837bc
(cherry picked from commit a631cf57ffe6f52ac73ca756bb4f1d7b2c434e91)
2016-09-27 08:37:54 +00:00
Sergey Kraynev
2860fb3a96 Pin stable/mitaka to 1.0.0 version
Change-Id: Ic4c2fe480c6f2a99bfea545a9855ad9635322c2a
(cherry picked from commit d83b8b48c6e9afbebda9a0422c8d71fe6f61c7ad)
2016-09-27 08:37:40 +00:00
Artem Silenkov
d52a7d28c7 [kubernetes][app] Modify calico.conf for new version
- MTU added as param
  - Config refactored for calico ge 1.4
  - MASTER_IP added

Murano spawns VM with MTU set for 1400. We should use use lower setting
for calico mesh network.

Closes-Bug: #1626999

Change-Id: I77efb3ae2abaf7c2705524b6e8b78e83c30f34e3
2016-09-27 11:32:32 +03:00
Jenkins
af8b628f8c Merge "Enable access to the Internet in case if Calico is used" 2016-09-23 14:58:28 +00:00
Dmytro Dovbii
3927be4a59 Enable access to the Internet in case if Calico is used
Partial-Bug: #1626999
Change-Id: I360feec9cbb2b135866279b526b87349534d48fa
2016-09-23 12:06:31 +00:00
Jenkins
31e2504251 Merge "Tune etcd settings to increase stability" 2016-09-22 17:04:07 +00:00
Dmytro Dovbii
0aaeba1217 Tune etcd settings to increase stability
Change-Id: Ia9fcefc3b03bb6c44b401dcc7d09b5f578bd506e
2016-09-22 16:32:44 +00:00
Dmytro Dovbii
05e6967318 Allow user to choose networking for containers
this commit provides ability to choose the network.
Calico is default.

Change-Id: I9dd97385d981db91791cc51ebb9f3265188fa984
2016-09-21 08:35:34 +00:00
Jenkins
f6a1449985 Merge "Add linters tests" 2016-09-21 08:12:14 +00:00
Jenkins
a3b37ee299 Merge "Fix path in readme for DIB" 2016-09-20 19:57:39 +00:00
Jenkins
20f877dd5d Merge "Enable traffic for Calico network" 2016-09-20 16:15:29 +00:00
Jenkins
dd4899c604 Merge "[app][calico][kubernetes] Enable calico networking in k8s application" 2016-09-20 16:15:23 +00:00
Jenkins
6ec1f6a5cd Merge "[K8s Cluster refresh] K8s v.1.3 Configuration updates" 2016-09-20 15:23:14 +00:00
alexz
80762c5bc5 Add linters tests
* add shellcheck
    - fix setupFlannelNode.sh
  * add yamllint
  * add murano-pkg-check

Change-Id: I25a29dbaec756ebce23fd5affd0abbd777b5cf30
2016-09-20 17:29:36 +03:00
Dmytro Dovbii
a35b9d38e7 Enable traffic for Calico network
Change-Id: I5bdb22e1441fde530754b263862d660280fbfe2b
2016-09-20 14:26:14 +00:00
Artem Silenkov
b8719ff122 [app][calico][kubernetes] Enable calico networking in k8s application
- binaries and scripts updated to use calico networking

Co-Authored-By: ddovbii <ddovbii@mirantis.com>
Change-Id: I3187b9cc171aa15caa4912a665c642ab057b4eae
2016-09-20 14:21:15 +00:00
Dmytro Dovbii
9c78a0a16d Fix path in readme for DIB
Change-Id: I11a00abc8a37cad411b57cbe156a3a2a6a8efef8
2016-09-20 17:06:42 +03:00
archyufa
d752079550 [K8s Cluster refresh] K8s v.1.3 Configuration updates
1. default_scripts/kube-apiserver parametres updates:
Replaced: address, ports with insecure-bind-address, insecure-port
Added: service-cluster-ip-range, admission-control, advertise-address
Depricated: portal_net

2. environ/apiserver parametres updates:
Updated: KUBE_API_ADDRESS, KUBE_API_PORTS
Added: KUBE_API_IP
Depricated: KUBE_API_ARGS

3. systemd/kube-apiserver.service parametres updates:
Added: KUBE_API_IP
Update: KUBE_SERVICE_ADDRESSES with KUBE_SERVICE
Depricated: KUBE_API_ARGS

4. default_scripts/kube-controller-manager updates:
Added: New params for KUBE_CONTROLLER_MANAGER_OPTS such as
service-cluster-ip-range, cluster-cidr, cluster-name

5. systemd/kube-controller-manager.service updates:
Added: new argumunets to start up command such as
KUBE_SERVICE, KUBE_NAME, KUBE_CIDR
Removed: KUBE_CONTROLLER_MANAGER_ARGS

6. kube-config updates with new
Added new argumunets to start up command such as
KUBE_SERVICE, KUBE_NAME, KUBE_CIDR

7. scripts/master-kube-setup.sh update:
Set Master IP value for apiserver and kube-apiserver scripts

Change-Id: I808ef5459e5fd5f1f5c916ddd3f94beab05e5c5d
2016-09-19 19:08:45 +03:00
Dmytro Dovbii
82d6b47ddc Fix DIB elements to allow docker use EnvironmentFile
Closes-Bug: #1590070
Change-Id: I5cd7bcb9b6fc7356a9255e1e05a6a169a054ecf6
2016-09-16 18:52:04 +03:00
Dmytro Dovbii
41ed47a183 Revert "Apply custom cidr configuration for docker0 for master k8s node"
This commit does not resolve a bug with docker0 due to the fact
that murano-agent is unable to execute script for reconfiguration
So, this patch reverts commit 6547024fa3947a65c74ee5a00140e5a8a9398437.

Change-Id: Ic522d54b14ade7878ce2c6b5729c1e117c329551
2016-09-15 15:43:06 +03:00
Dmytro Dovbii
6547024fa3 Apply custom cidr configuration for docker0 for master k8s node
Change-Id: Id47c3d4548f1556280b9663a6176205bf0d3b051
Closes-Bug: #1590070
2016-09-14 15:47:22 +03:00
Jenkins
7d1dba0b36 Merge "Fixing docker DIB element for setting correct MTU" 2016-08-29 00:55:04 +00:00
Nikolay Mahotkin
4fd1b640ca [K8s] Fixing patchService.sh
* Since update command is replaced by replace here
   https://review.openstack.org/#/c/358661/
   for patching the resource it needs to use
   'kubectl patch <type> <name> --patch <patch>'

Change-Id: Ie7e5c4aea3b0cee519ae5ed81cff0dcc3ab67562
2016-08-26 16:33:27 +03:00
Nikolay Mahotkin
5c69e7d64c Fixing docker DIB element for setting correct MTU
* docker0 interface in ubuntu had incorrect MTU value
 * Older docker (< v1.1) automatically infer MTU value based
 on host. But since 1.1 docker doesn't do this. It
 sets MTU value 1500 which causes some network problems
 (especially with SSL/TLS/HTTPS) and apps like
 HTTPdSite and NginXSite couldn't clone the repo.

Closes-Bug: 1608836

Change-Id: I62482bce9ad4f45b7ea2d1d4db77d009c7191f7b
2016-08-26 15:17:38 +03:00
Jenkins
e872c9ce2b Merge "Fixing volume entry definitions" 2016-08-24 08:41:40 +00:00
Nikolay Mahotkin
5c680111b6 Fixing volume entry definitions
* According to
   http://kubernetes.io/docs/user-guide/volumes/#types-of-volumes
   and
   a1b5325011
   there is hostPath volume type instead of hostDir;
   And there is no 'source' keyword anymore.

 * Replacing 'kubectl update' on 'kubectl replace':
   kubectl update is deprecated, need to use 'replace':
   9b3d42c090

Closes-Bug: #1604766

Change-Id: I1029caeb2827fc9de271b457c7a61b043d0189cb
2016-08-23 13:20:37 +03:00
Nikolay Mahotkin
27aa9a450a [K8s] Fixing service naming
* Due to the service name length limitation
   it needs to be cut to 24 characters.

Closes-Bug: #1613651

Change-Id: Id2d68346034c0697f3fb41a090201e8736f8deec
2016-08-23 11:09:40 +03:00
Jenkins
7738e13e7a Merge "[kubernetes][app] Fix flannel settings for docker" 2016-08-17 14:41:57 +00:00
Artem Silenkov
99dff014c1 [kubernetes][app] Fix flannel settings for docker
DOCKER_OPTS should be covered with quotation marks

Change-Id: Ib3bc5ae61226c779485e8dc693dab33b01ef39e3
2016-08-17 17:00:46 +03:00
Artem Silenkov
ed467511e7 [qcow2 image][kubernetes] Scripts updated to use latest etcd
* latest etcd is enabled
  * ntp tools added for time sync
  * Readme updated for tmpfs workaround when 8Gb memory is detected

Change-Id: Ifdfb72902fad843baef1fcee3e5bc65b119bdde3
2016-08-16 11:58:34 +03:00
Jenkins
41def34bbd Merge "[Docker] Fix upstart ans sysvinit scripts for ubuntu" 2016-08-10 08:56:12 +00:00
Jenkins
d6994b5be6 Merge "Shell files syntax cleanup" 2016-08-09 08:59:48 +00:00
asilenkov
2dd7f39213 [Docker] Fix upstart ans sysvinit scripts for ubuntu
Fix the way hyperkube starts for sysv and upstart

Change-Id: If682033af5f5d58b64cec463d6d379bf79b06c8e
2016-08-04 19:55:04 +03:00