Commit Graph

85 Commits

Author SHA1 Message Date
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
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
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 6547024fa3.

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
alexz
3f7ec09847 Shell files syntax cleanup
* add SC2001 to shellcheck skip-list
* few functions from CloudFoundryDiego application was changed -
  manual deployment test requeired

Change-Id: Ib7b223553bdfc14f7051911d7ed0e4076c6aebb0
2016-07-29 09:05:33 +00:00
asilenkov
153df74882 [docker] Switch kubernetes application to hyperkube
Init scripts updated to use all-in-one-binary for all services

Change-Id: I96518d4c93a64d83a55c542e40d8024781fd95c8
2016-07-26 18:08:16 +03:00
Jenkins
001f04c3a2 Merge "privileged mode support for KubernetesPod and DockerStandaloneHost" 2016-07-24 18:35:15 +00:00
Vitaly Lopatkin
ba744855df privileged mode support for KubernetesPod and DockerStandaloneHost
Change-Id: I2155b27af1e59bf907d7ad03dedada98ef8ebb76
2016-07-22 16:52:44 +06:00
Dmytro Dovbii
82c876eb1e [k8s] Fix typo in member configuration script
Change-Id: I07fd7a1e773b6e9c975f246abfd7055078db2c0a
2016-07-22 12:37:48 +03:00
Dmytro Dovbii
8da5a549fc [K8s] Delete hardcoded name of image
Now app can use two images: debian 8 and ubuntu 14.04

Change-Id: I360c2d02ad1ea726448a2338852d3c190cf1f3bb
2016-07-15 11:32:36 +00:00
Dmytro Dovbii
aadbfa87f2 Add info about Debian image building to elements readme
Change-Id: Ia0039aac4237a43d9c3e395319952f5ebde50e7a
2016-07-15 13:57:33 +03:00
Dmytro Dovbii
62cbb515af [K8s] Update dib elements to support debian image
Change-Id: I1a2eee8c163cc8c54b81d9ca5bad4b22f9ad41b6
2016-07-15 13:57:33 +03:00
Dmytro Dovbii
f666ae2b3f [K8s] Add units to make k8s working on debian
Change-Id: Iec45db413f0e88a68b435a13aa7a4b4a6fdfd818
2016-07-15 13:57:24 +03:00
Dmytro Dovbii
93878c0db1 [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
2016-07-15 13:49:53 +03:00
Nikolay Mahotkin
2d4eb1d122 [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
2016-07-04 19:34:14 +03:00
Jenkins
f0513c429a Merge "[K8s] Update DIB elements to use latest stable binaries" 2016-06-21 23:20:17 +00:00
Jenkins
30cf1b9414 Merge "Update namespaces for k8s applications" 2016-06-21 08:25:28 +00:00
Tetiana Lashchova
f57eb2fa4c Update namespaces for k8s applications
Replace io.murano.apps with com.mirantis

bp fix-fqn-usage

Change-Id: I5bb6129a51beadffe124cd0fb289f41e05cd52c3
2016-06-17 12:36:17 +03:00
Dmytro Dovbii
c78ac38bcb [K8s] Update DIB elements to use latest stable binaries
Change-Id: I98c0815d8dd0295c5982934b7b42cad126e04d88
2016-06-16 13:20:48 +03:00
Jenkins
2bbc0f8936 Merge "[kubernetes] Create actions to recreate pods and restart containers" 2016-06-16 01:15:00 +00:00
Jenkins
8298db5d79 Merge "[k8s] Save gateway node ip before its release for proper reporting" 2016-06-10 20:19:00 +00:00
Valerii Kovalchuk
3c3371f270 [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
2016-06-10 19:19:36 +03:00
Dmytro Dovbii
8dd4721331 [Docker] Add cidr configuration for docker0 interface
Change-Id: Ib332086359a005146ffefb8b16c324ef04604785
Closes-Bug: #1590070
2016-06-10 08:00:00 +00:00
Valerii Kovalchuk
b1b9bf39fb [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
2016-06-09 20:26:20 +03:00
Dmytro Dovbii
b46d49af09 Fix yaql related issues in Docker apps
Partially-Implements: bp refactor-apps-scripts

Change-Id: Iaf75ec38b133d45778bb1c0f3328e939a9a54bda
2016-05-11 16:27:06 +00:00
Jenkins
7144c14372 Merge "Initial refactoring of murano apllications" 2016-05-10 08:03:06 +00:00
Tetiana Lashchova
53ad51fd3e Fix typos in log, comments and template section name
Unnstalling -> Uninstalling
envionrment -> environment
FormattVersion -> FormatVersion

Change-Id: I3efab0a44201935d077c9f5e25550b314731aa40
2016-04-25 13:42:43 +00:00
Dmytro Dovbii
aa524e0acc Initial refactoring of murano apllications
* Increases format of packages
* Adds missed licence headers
* Other minor refactoring

Change-Id: I580bea2eb2f7e4616cd12245367ada8d43c5c4ff
Targets: bp refactor-apps-scripts
2016-04-07 12:55:24 +03: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
Stan Lagun
0549313491 [Docker] Do not try to delete container on destroyed host
When Environment get deleted both Docker/k8s host and
Docker applications get deleted. So it is possible that host
will try to delete container from an Instance that was already
destroyed. Attempt to send commands to such instance
will hang until timeout because there is no more agent
exist on the other side.

Change-Id: Ia6e8064ae50c24ce595ed08e446ed45b96b4a330
Closes-Bug: #1504623
Depends-On: I298f3f079a153ef87ed7213b7f1432c9e5e4b4b6
2015-10-12 11:23:27 +00:00