Commit Graph

142 Commits

Author SHA1 Message Date
Sergey Kraynev abca9ebb98 Deprecate Docker repository
Old Docker subdirectory was moved to the new project:
https://github.com/openstack/k8s-docker-suite-app-murano

So we no more need to maintain this code in murano-apps.

Change-Id: Ibd39627d4ae5e23c162a901ad7f50a0ee71cfcf9
2016-09-05 07:26:44 +00:00
Jenkins fa68f23c45 Merge "Fixing docker DIB element for setting correct MTU" 2016-08-29 00:55:04 +00:00
Nikolay Mahotkin 94734974c6 [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 a6032decba 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 05f017fd94 Merge "Fixing volume entry definitions" 2016-08-24 08:41:40 +00:00
Jenkins 60a74f0256 Merge "[K8s] Fixing service naming" 2016-08-24 07:28:29 +00:00
Nikolay Mahotkin a717988918 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 2fe1ddc8e3 [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 d2c3f45f5f [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 b5af9999e1 Merge "[kubernetes][app] Fix flannel settings for docker" 2016-08-17 14:41:57 +00:00
Artem Silenkov 629cbd1a93 [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 6efcbbc0c6 [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 593d92d023 Merge "[Docker] Fix upstart ans sysvinit scripts for ubuntu" 2016-08-10 08:56:12 +00:00
Jenkins f289b8988c Merge "Shell files syntax cleanup" 2016-08-09 08:59:48 +00:00
asilenkov 84d3c20411 [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
Jenkins 48f65636f5 Merge "[docker] Switch kubernetes application to hyperkube" 2016-08-04 11:44:41 +00:00
alexz cde9332029 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
alexz 1c14e3231c Yaml syntax cleanup
* remove 'error' like:
- no new line character at the end of file
- trailing spaces

Change-Id: I981f5353a5bd5bfb1546946b240a85905272887e
2016-07-27 14:06:24 +00:00
asilenkov 7c779277ca [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 dade2a6dc8 Merge "privileged mode support for KubernetesPod and DockerStandaloneHost" 2016-07-24 18:35:15 +00:00
Jenkins f3b6540dd1 Merge "[DSH] Delete hardcoded image name" 2016-07-24 18:35:09 +00:00
Vitaly Lopatkin 2080ebd86a privileged mode support for KubernetesPod and DockerStandaloneHost
Change-Id: I2155b27af1e59bf907d7ad03dedada98ef8ebb76
2016-07-22 16:52:44 +06:00
Dmytro Dovbii 98845644f5 [k8s] Fix typo in member configuration script
Change-Id: I07fd7a1e773b6e9c975f246abfd7055078db2c0a
2016-07-22 12:37:48 +03:00
Dmytro Dovbii 906e6586c4 [DSH] Delete hardcoded image name
We have a debian 8 image for a long time, which
can be successfully used by docker standalone host
to run dockerized apps, but we still don't use it.
This commit deletes hardcode and adds image field to
ui with filter by type `linux.docker`.

Change-Id: Ie3d9d454cd98f651833b28690d33d55b404dc13d
2016-07-20 15:58:12 +00:00
Dmytro Dovbii 00ecf3f40d Fix the FQN on DockerJenkins app
Change-Id: I4a9a6239fb796f25085c3f88a04a50eb1b464501
2016-07-20 14:02:59 +03:00
Jenkins 82e7536c57 Merge "[K8s] Delete hardcoded name of image" 2016-07-19 15:54:34 +00:00
Jenkins 14f9987e78 Merge "Add info about Debian image building to elements readme" 2016-07-19 15:54:29 +00:00
Jenkins 1041ce4ac9 Merge "[K8s] Update dib elements to support debian image" 2016-07-19 15:54:23 +00:00
Jenkins 26a78f736b Merge "[K8s] Add units to make k8s working on debian" 2016-07-19 15:54:17 +00:00
Jenkins 44c5dadec8 Merge "[K8s] Update scripts with etcd and flannel configuration" 2016-07-19 13:21:29 +00:00
Dmytro Dovbii 3762c2f7cb [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 f180a946e9 Add info about Debian image building to elements readme
Change-Id: Ia0039aac4237a43d9c3e395319952f5ebde50e7a
2016-07-15 13:57:33 +03:00
Dmytro Dovbii 0236b1172b [K8s] Update dib elements to support debian image
Change-Id: I1a2eee8c163cc8c54b81d9ca5bad4b22f9ad41b6
2016-07-15 13:57:33 +03:00
Dmytro Dovbii 97da590643 [K8s] Add units to make k8s working on debian
Change-Id: Iec45db413f0e88a68b435a13aa7a4b4a6fdfd818
2016-07-15 13:57:24 +03:00
Dmytro Dovbii eb701d4869 [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
Tetiana Lashchova c68671ac75 Update namespace for DockerStandaloneHost
Replace com.example with com.mirantis

Change-Id: I03716573186fc0f6a973b25c95116aeea864a077
2016-07-14 13:22:07 +03:00
Nikolay Mahotkin 30db029dcb [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 2345d1ea40 Merge "[K8s] Update DIB elements to use latest stable binaries" 2016-06-21 23:20:17 +00:00
Jenkins bd09026f15 Merge "Fix usage of id() and super() methods in Docker apps" 2016-06-21 12:33:20 +00:00
Tetiana Lashchova e5efaff69c Fix usage of id() and super() methods in Docker apps
Change-Id: Ieb34aee28b796adfceebca0c825d05de02cf37ac
Closes-Bug: #1593682
2016-06-21 13:27:35 +03:00
Jenkins 152d6bb2ab Merge "Update namespaces for docker applications" 2016-06-21 08:25:38 +00:00
Jenkins 9a1a41f2de Merge "Update namespaces for k8s applications" 2016-06-21 08:25:28 +00:00
Tetiana Lashchova 09d43b493c Update namespaces for docker applications
io.murano.apps -> com.mirantis for k8s applications,
io.murano.apps -> com.example for example applications.

bp fix-fqn-usage

Change-Id: I7061b48ebcc5c33b96a14cfabb982d709f8b709d
2016-06-17 12:37:23 +03:00
Tetiana Lashchova cdd7bc0684 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 d413f46604 [K8s] Update DIB elements to use latest stable binaries
Change-Id: I98c0815d8dd0295c5982934b7b42cad126e04d88
2016-06-16 13:20:48 +03:00
Jenkins 4f4e82e4b7 Merge "[kubernetes] Create actions to recreate pods and restart containers" 2016-06-16 01:15:00 +00:00
Jenkins 3dfbaa1901 Merge "[k8s] Save gateway node ip before its release for proper reporting" 2016-06-10 20:19:00 +00:00
Valerii Kovalchuk 92238f78c8 [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 efaeddeeca [Docker] Add cidr configuration for docker0 interface
Change-Id: Ib332086359a005146ffefb8b16c324ef04604785
Closes-Bug: #1590070
2016-06-10 08:00:00 +00:00
Valerii Kovalchuk 3c393ba7c6 [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