Commit Graph

86 Commits

Author SHA1 Message Date
Dmytro Dovbii
a631cf57ff Add missed parts of providing versioning to stable/mitaka
Change-Id: Ife9de7da408f340c5a855be3281e4a8ca55837bc
2016-09-26 15:25:03 +00:00
Sergey Kraynev
d83b8b48c6 Pin stable/mitaka to 1.0.0 version
Change-Id: Ic4c2fe480c6f2a99bfea545a9855ad9635322c2a
2016-09-23 12:34:15 +00:00
Jenkins
d390d3c687 Merge "Allow user to choose networking for containers" into stable/mitaka 2016-09-23 12:26:23 +00:00
Dmytro Dovbii
966e2c2dd5 Allow user to choose networking for containers
This commit provides ability to choose the network.
Calico is default.

Change-Id: I9dd97385d981db91791cc51ebb9f3265188fa984
(cherry picked from commit 05e6967318)
2016-09-23 07:37:15 +00:00
Dmytro Dovbii
2da3bf22c8 Tune etcd settings to increase stability
Change-Id: Ia9fcefc3b03bb6c44b401dcc7d09b5f578bd506e
2016-09-22 14:37:05 +00:00
alexz
5898c46a6e Add linters tests
* add shellcheck
    - fix setupFlannelNode.sh
  * add yamllint
  * add murano-pkg-check

Change-Id: I25a29dbaec756ebce23fd5affd0abbd777b5cf30
(cherry picked from commit 80762c5bc5)
2016-09-21 14:49:24 +03:00
Dmytro Dovbii
d96bed91e7 Enable traffic for Calico network
Change-Id: I5bdb22e1441fde530754b263862d660280fbfe2b
(cherry picked from commit a35b9d38e7)
2016-09-21 14:49:20 +03:00
Artem Silenkov
d4d6953e05 [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
(cherry picked from commit b8719ff122)
2016-09-21 14:49:17 +03:00
Dmytro Dovbii
3628cf0022 Fix path in readme for DIB
Change-Id: I11a00abc8a37cad411b57cbe156a3a2a6a8efef8
(cherry picked from commit 9c78a0a16d)
2016-09-21 14:49:13 +03:00
archyufa
b02e67545d [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
(cherry picked from commit d752079550)
2016-09-21 14:48:56 +03:00
Dmytro Dovbii
635c8542b7 Fix DIB elements to allow docker use EnvironmentFile
Closes-Bug: #1590070
Change-Id: I5cd7bcb9b6fc7356a9255e1e05a6a169a054ecf6
(cherry picked from commit 82d6b47ddc)
2016-09-21 14:48:43 +03:00
Nikolay Mahotkin
bfcce53a33 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
(cherry picked from commit 5c69e7d64c)
2016-09-21 14:47:07 +03:00
Artem Silenkov
6e0b095281 [kubernetes][app] Fix flannel settings for docker
DOCKER_OPTS should be covered with quotation marks

Change-Id: Ib3bc5ae61226c779485e8dc693dab33b01ef39e3
(cherry picked from commit 99dff014c1)
2016-09-21 14:45:40 +03:00
Artem Silenkov
c55c3d1ad9 [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
(cherry picked from commit ed467511e7)
2016-09-21 14:45:33 +03:00
asilenkov
70ef5e1234 [Docker] Fix upstart ans sysvinit scripts for ubuntu
Fix the way hyperkube starts for sysv and upstart

Change-Id: If682033af5f5d58b64cec463d6d379bf79b06c8e
(cherry picked from commit 2dd7f39213)
2016-09-21 14:45:25 +03:00
alexz
7ce23d0367 Shell files syntax cleanup
* add SC2001 to shellcheck skip-list
* few functions from CloudFoundryDiego application was changed -
  manual deployment test requeired

Change-Id: Ib7b223553bdfc14f7051911d7ed0e4076c6aebb0
(cherry picked from commit 3f7ec09847)
2016-09-21 14:45:07 +03:00
asilenkov
94316c8d5c [docker] Switch kubernetes application to hyperkube
Init scripts updated to use all-in-one-binary for all services

Change-Id: I96518d4c93a64d83a55c542e40d8024781fd95c8
(cherry picked from commit 153df74882)
2016-09-21 14:42:11 +03:00
Dmytro Dovbii
60f52e4af5 [Docker] Add cidr configuration for docker0 interface
Change-Id: Ib332086359a005146ffefb8b16c324ef04604785
Closes-Bug: #1590070
(cherry picked from commit 8dd4721331)
2016-09-21 14:32:36 +03:00
Dmytro Dovbii
3807b06250 Fix yaql related issues in Docker apps
Partially-Implements: bp refactor-apps-scripts

Change-Id: Iaf75ec38b133d45778bb1c0f3328e939a9a54bda
(cherry picked from commit b46d49af09)
2016-09-21 14:30:34 +03:00
Tetiana Lashchova
7e61b132ee Fix typos in log, comments and template section name
Unnstalling -> Uninstalling
envionrment -> environment
FormattVersion -> FormatVersion

Change-Id: I3efab0a44201935d077c9f5e25550b314731aa40
(cherry picked from commit 53ad51fd3e)
2016-09-21 14:30:25 +03:00
Dmytro Dovbii
b8eeb2bfee Initial refactoring of murano apllications
* Increases format of packages
* Adds missed licence headers
* Other minor refactoring

Change-Id: I580bea2eb2f7e4616cd12245367ada8d43c5c4ff
Targets: bp refactor-apps-scripts
(cherry picked from commit aa524e0acc)
2016-09-21 14:27:17 +03:00
Jenkins
ce8a0b8a5a Merge "[K8s] Fixing patchService.sh" into stable/mitaka 2016-08-29 13:01:09 +00:00
Nikolay Mahotkin
bd065364c6 [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
(cherry picked from commit 2fe1ddc8e3c8a9f2d07c1f6bde25156f39776b62)
2016-08-29 11:13:54 +03:00
Nikolay Mahotkin
843189bed3 [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
(cherry picked from commit 94734974c62102cb4272cc75ce72b8ed039e83ef)
2016-08-29 08:09:52 +00:00
Nikolay Mahotkin
c1ec6caaaf 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-26 15:11:14 +03:00
Vitaly Lopatkin
186a562d7f privileged mode support for KubernetesPod and DockerStandaloneHost
Change-Id: I2155b27af1e59bf907d7ad03dedada98ef8ebb76
(cherry picked from commit 2080ebd86a42c3b56b5e5643ba9886ed0b4dfb13)
2016-07-26 08:19:12 +00:00
Dmytro Dovbii
44acdff1b1 [K8s] Delete hardcoded name of image
Now app can use two images: debian 8 and ubuntu 14.04

Closes-Bug: #1453585
Change-Id: I360c2d02ad1ea726448a2338852d3c190cf1f3bb
2016-07-25 14:42:29 +00:00
Dmytro Dovbii
dd31270a1b Add info about Debian image building to elements readme
Partial-Bug: #1453585
Change-Id: Ia0039aac4237a43d9c3e395319952f5ebde50e7a
2016-07-25 14:42:18 +00:00
Dmytro Dovbii
09955ba37f [K8s] Update dib elements to support debian image
Partial-Bug: #1453585
Change-Id: I1a2eee8c163cc8c54b81d9ca5bad4b22f9ad41b6
2016-07-25 14:01:05 +00:00
Jenkins
4801253e23 Merge "[kubernetes] Create actions to recreate pods and restart containers" into stable/mitaka 2016-07-24 18:34:14 +00:00
Jenkins
86ce77335e Merge "[K8s] Add units to make k8s working on debian" into stable/mitaka 2016-07-22 14:04:41 +00:00
Jenkins
c6052f34a4 Merge "[K8s] Updating DIB elements and fix k8s application" into stable/mitaka 2016-07-22 14:04:34 +00:00
Jenkins
ed398a8818 Merge "[k8s] Fix typo in member configuration script" into stable/mitaka 2016-07-22 14:04:19 +00:00
Valerii Kovalchuk
c80837557a [kubernetes] Create actions to recreate pods and restart containers
This patch adds actions to KubernetesPod class which allow to
recreate a pod (delete it and create new one) and to restart docker
containers on minion nodes.

Change-Id: Ia03b27d72662700fb302960adba9dae20203b597
Closes-bug: #1466359
(cherry picked from commit 92238f78c873cfada8befbf0afd8bb35e16ed28d)
2016-07-22 13:39:50 +00:00
Dmytro Dovbii
fdae144cb4 [k8s] Fix typo in member configuration script
Change-Id: I07fd7a1e773b6e9c975f246abfd7055078db2c0a
2016-07-22 09:46:06 +00:00
Valerii Kovalchuk
8379e4ba23 [k8s] Save gateway node ip before its release for proper reporting
During scaling gateways down, reporter was trying to get ip of the
instance which was already released and that caused index error.
This patch saves this ip for report before releasing resourses.

Change-Id: I9310a423b1ad8c488c1cc7400844ae5d8767879c
Closes-bug: #1590728
(cherry picked from commit 3c393ba7c6e63c93018ffa7f422ee9a7ceb5fbce)
2016-07-20 13:58:59 +00:00
Nikolay Mahotkin
1b787ff83e [K8s] Updating DIB elements and fix k8s application
* DIB element is updated to the latest k8s version - 1.3.0
 * K8s application is fixed according to the new k8s version:
    - replaced short '-t' flag on the long one - '--template'

Change-Id: I37d73a907c55c0e3aca6a2e786b05a9e99a215ac
(cherry picked from commit 30db029dcb9ea69e1b2d386a779d43632f5a49d2)
2016-07-20 08:33:26 +00:00
Dmytro Dovbii
8731a72012 [K8s] Add units to make k8s working on debian
Partial-Bug: #1453585
Change-Id: Iec45db413f0e88a68b435a13aa7a4b4a6fdfd818
2016-07-20 08:01:55 +00:00
Dmytro Dovbii
23d6fd7996 [K8s] Update scripts with etcd and flannel configuration
This patch adds tuning of existing scripts related to
updating etcd binaries from 2.0.13 to 2.2.5

Change-Id: I33eac5abe96449a2a35f7305632b68fd20960f5c
(cherry picked from commit eb701d4869731c0c531d370387acddde47992e67)
2016-07-20 07:30:06 +00:00
Tetiana Lashchova
b103490c4c Update namespaces for k8s applications
Replace io.murano.apps with com.mirantis

bp fix-fqn-usage

Change-Id: I5bb6129a51beadffe124cd0fb289f41e05cd52c3
(cherry picked from commit cdd7bc068408726313952dd5d4bc9be8579ecbb9)
2016-07-15 11:36:48 +00:00
Dmytro Dovbii
d09c454ae7 [K8s] Update DIB elements to use latest stable binaries
Change-Id: I98c0815d8dd0295c5982934b7b42cad126e04d88
(cherry picked from commit d413f46604cef2a56b2fe6d14f483f31a4ae1dca)
2016-07-06 12:22:41 +00:00
Konstantin Snihyr
1dcc9914dc Action "exportConfig" removed from KubernetesCluster package
Change-Id: I9cb5366afca2d08c9e39808aa308f628d9bd0766
2016-03-02 19:25:21 +03:00
Jenkins
8008c8b12f Merge "Add Google Container Registry to KubernetesCluster" 2015-12-03 16:24:23 +00:00
Tetiana Lashchova
d082560c46 Add Google Container Registry to KubernetesCluster
Allow access to Google Container Registry using json key as
a password for docker login. The key is scoped to a specific
Google Cloud Platform Console project and its resources.
Add new field for key.

Partially implements: blueprint k8s-google-registry-support

Change-Id: Ica71d1a48ac7fb75a71497fcbe318d1b9e4e8192
2015-12-03 14:14:09 +02:00
Stan Lagun
095dece649 [Kubernetes] Rename minions to Kubernetes nodes
Change-Id: I64b8b199d536bb56529c5b2c4d2879c8deac3cb8
Closes-Bug: #1466348
2015-11-12 01:36:52 +00:00
Jenkins
84e7e83cb6 Merge "Add custom docker registry to KubernetesCluster" 2015-11-09 17:51:25 +00:00
Tetiana Lashchova
3b1fba08b8 Add custom docker registry to KubernetesCluster
Allow access to private docker registry using docker argument
'--insecure-registry'.
Add new field for docker private registry host ip or domain name.

Partially implements: blueprint k8s-docker-enterprise-hub-support

Change-Id: I725c0b6a2bdbfe6eb9e627266411286fe44bfae3
2015-11-02 14:25:20 +02:00
Jenkins
c4c20022ac Merge "[Kubernetes] Bunch of issues regarding scaling was fixed" 2015-10-27 05:34:37 +00:00
Stan Lagun
9715d5e3e7 [Kubernetes] Bunch of issues regarding scaling was fixed
1. There was scaleGatewayUp but no Down action
2. Gracefully remove node from etcd upon down-scale of nodes/gateways
3. Log to user which gateways were created/deleted
4. Deployment either hanged or worked incorrectly when downscaling and then
     upscaling something again

Also sets minimum gateway node count to 1 until gateway-less mode be fully
functional again

Change-Id: Ie3255f70b8a3fdfadab119a579c00433938495c8
Closes-Bug: #1509074
2015-10-22 23:10:33 +03:00
Ekaterina Chernova
576cd97d0c Remove 'images.lst' files
Some images are updated and may not supported in the future.
Murano admins should build images by there own
from fresh elements, provided in the application folder

Change-Id: I683bcac64e46e4c93a1b958e5b79452874c44288
(cherry picked from commit bd51f268525a55c7800a32a3e3d3fd5e9ffc4fb0)
2015-10-20 12:05:20 +00:00