Commit Graph

177 Commits

Author SHA1 Message Date
archyufa
f5d032a4c3 Readme Update
Added How Murano installs Kubernetes Cluster
Added How Murano upgrades Kubernetes Cluster
Minor updates on Networking
Fixed broken links
Added detailed info on Calico
Change-Id: Ic1538b33fa79ba0bb772a442dfc7c0a5db3a2e97
2016-09-26 19:55:46 -04:00
Jenkins
7fcb75dfe5 Merge "Added Release notes file" 2016-09-23 15:10:28 +00:00
Jenkins
af8b628f8c Merge "Enable access to the Internet in case if Calico is used" 2016-09-23 14:58:28 +00:00
archyufa
44bc9dca99 Added Release notes file
Added Information about V1.0.0 release

Change-Id: Ia8530de363ebac86dd8225803d22db47b3fbd882
2016-09-23 17:51:57 +03: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
archyufa
66ddf3c4e0 Readme Update
Following sections has been addedd:

 * Features
 * Rolling Updates of Kubernetes application
 * Interacting with Kubernetes Cluster deployed by Murano

Co-Authored-By: Nikolay Mahotkin <nmakhotkin@mirantis.com>
Change-Id: I7d7572d6c53c9f6f0165ff55fa4d0ed5abdedef9
2016-09-23 07:34:13 +00:00
Jenkins
31e2504251 Merge "Tune etcd settings to increase stability" 2016-09-22 17:04:07 +00:00
Jenkins
2a0ebeaac9 Merge "Adding setup.|(py,cfg) for building docs" 2016-09-22 16:37:23 +00:00
Dmytro Dovbii
0aaeba1217 Tune etcd settings to increase stability
Change-Id: Ia9fcefc3b03bb6c44b401dcc7d09b5f578bd506e
2016-09-22 16:32:44 +00:00
Nikolay Mahotkin
6370419b6d Adding setup.|(py,cfg) for building docs
Change-Id: I668460839806b1ac051a80a880955b914ef2bb7b
2016-09-22 18:52:26 +03: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
35407bc8bd Merge "Adding tox env for docs" 2016-09-21 08:29:42 +00:00
Jenkins
9120931f2c Merge "Adding initial doc hierarchy for building with sphinx" 2016-09-21 08:23:13 +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
Nikolay Mahotkin
d0e77a48ec Adding tox env for docs
Change-Id: I30f009448a3d82d6a53463ff534aae3dc466c042
2016-09-20 11:48:03 +00:00
Nikolay Mahotkin
fb9495099d Adding initial doc hierarchy for building with sphinx
* Added generic .gitignore file
 * Added initial sphinx config file
 * Imported 2 doc pages from repo:
    - Kubernetes cluster
    - Docker interfaces library

Change-Id: Iff43fa4afe899a548f9992a2bb4b280397098222
2016-09-20 11:47:53 +00:00
Jenkins
d5b2b00167 Merge "Add k8s app test for per-commit job" 2016-09-19 17:21:19 +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
Anastasia Kuznetsova
a143e7c707 Add k8s app test for per-commit job
Scenario:
            1. Create murano environment
            2. Create session for create environment.
            3. Initialize k8s cluster parameters and add app to env.
            4. Initialize k8s pod parameters and add app to env.
            5. Deploy session.
            7. Check env status and port availability on k8s master node.
            8. Get k8s minions' ips and check that correct initial number
            of them was created and k8s api port is available on them.
            9. Run 'scaleNodesUp' action for k8s minions.
            10. Check that number of minions was increased and
            k8s api port is available on all of them
            11. Run 'scaleNodesDown' action for k8s minions.
            12. Check that number of minions was decreased and
            k8s api port is available on all of them

Change-Id: I63bf61b6f9e5fd45b8e6bde0fab87da5826bedc6
2016-09-19 19:02:41 +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 6547024fa3.

Change-Id: Ic522d54b14ade7878ce2c6b5729c1e117c329551
2016-09-15 15:43:06 +03:00
Dmytro Dovbii
493ce1927f Fix wrong usage of join()
Change-Id: Iebb70cea8483b6f0a577ab6b8d8015c39fba6345
Closes-Bug: #1623006
2016-09-14 17:40:50 +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
957ccc99b4 Merge "Add initial version of script for zipping packages" 2016-09-12 07:39:59 +00:00
Anastasia Kuznetsova
f30c93884f Add initial version of script for zipping packages
For running k8s and docker autotests against this repo
we need to prepare and upload packages first.

This is a POC of script, it should be refactored and improved in
future, but for now we need to have some prototype somewhere, otherwise
it will be hardcoded in jenkins job.

Change-Id: I58c7965b275dd3a86de69f9e341c61edc04cc976
2016-09-09 17:47:31 +03:00
Jenkins
8dca5aee63 Merge "Add info about recreatePod and restartContainers actions" 2016-09-05 11:57:02 +00:00
Valerii Kovalchuk
15fd3deb33 Add info about recreatePod and restartContainers actions
Change-Id: I0f21903f4c89b4bd1393f7eddb03908efc1018b8
2016-09-02 15:09:26 +00:00
Sergey Kraynev
759c7e07a1 Add .gitreview file for new repo
Change-Id: I870195b0739371bdbf2a5c7e644830ed0d7e2f6a
2016-09-01 11:54:41 +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
Jenkins
c48570dedf Merge "[K8s] Fixing service naming" 2016-08-24 07:28:29 +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
Nikolay Mahotkin
24c4a2d443 [k8s] Restrict getEndpoints to search only in current pod
* If we have a k8s cluster installed and
   then deploy 2 apps, each on separate pod,
   then in logs we will see 2 endpoints for
   2nd app. Then we will see 3 endpoints for
   next pod/app deployment. The reason is searching
   endpoints was done by whole k8s cluster but it
   should rather be only by current pod.
   Now it is fixed.

Closes-Bug: #1613631

Change-Id: I730016dcd55a922ac6c9ee20f9de500f7831f9c3
2016-08-19 15:29:56 +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