Commit Graph

22 Commits

Author SHA1 Message Date
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
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
Vitaly Lopatkin
ba744855df privileged mode support for KubernetesPod and DockerStandaloneHost
Change-Id: I2155b27af1e59bf907d7ad03dedada98ef8ebb76
2016-07-22 16:52:44 +06:00
Jenkins
df5b08864b Merge "Fix usage of id() and super() methods in Docker apps" 2016-06-21 12:33:20 +00:00
Tetiana Lashchova
1d0fc0a3e0 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
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
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
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
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
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
Stan Lagun
17fea01068 [Kubernetes] Action to scale Pod up/down
Change-Id: I6b2737524955b1f72b6a692559d3942cbb60deb7
Closes-Bug: #1449599
2015-10-09 15:54:32 +00:00
Stan Lagun
6971ac48bc [Kubernetes] Kubernetes was updated to v1.0.6 and v1 API
Implements-Blueprint: update-k8-to-v1-api
Change-Id: Ie34997dc2aef87226459fa67640e39c08cca0ddf
2015-10-09 17:25:32 +03:00
Stan Lagun
39a9001c04 Adds ability to delete docker applications from the host
Application deletion were supported on DSH/Pod but not exposed
in DockerApplication. Once it became exposed number of bugs in
KubernetesPod and DSH became visible.

Change-Id: I33650936a73994668f72348a909b7a51bae2b98c
Closes-Bug: #1446582
(cherry picked from commit a74293e2b4ed5695737066d9154d51a4170b8a80)
2015-05-01 22:44:24 +00:00
Stan Lagun
cf80a59454 Fixes env validation in k8s 0.15/API v1beta3
for ENV variables parameter name was renamed from "key" to "name"

Closes Bug: #1447948

Change-Id: I2977800eaa8606c934ee33b907a68981753696c7
2015-04-24 13:04:55 +00:00
Stan Lagun
342ef70801 Added missing execution plan
Execution plan to patch existing k8s services to include node IPs
when number of nodes changed and we are not using gateways
or we was using gateways and now we don't

These 2 files were supposed to be in
https://review.openstack.org/#/c/175506/
but I forgot to commit them

Also fixes typo that is already fixed in stable/kilo

Change-Id: I6af644511bf25ae7ae31c88914d33b8c518a4eec
2015-04-22 03:28:37 +03:00
Jenkins
1576a5626b Merge "Add license information" 2015-04-22 00:23:44 +00:00
Stan Lagun
c681e2197d Update for changes in k8s 0.15
* Migrated to v1beta3 API
* cAdvisor is now enabled by default
* command line daemon settings updated
* HAproxy template updated for multi-port services
* Better reporting

Change-Id: Iefcbe8073fb35503e2fe2ee5c6bf4610561c3cb6
Closes-Bug: #1446306
Closes-Bug: #1445541
2015-04-20 20:34:02 +03:00
Ekaterina Chernova
53c9a9ad26 Add license information
* LICENSE file placed to every package
* License information is shown during application creation
* License added to every file

Change-Id: I682f3d9a09d0c0b575206d79223c1822c4b94f27
Closes-Bug: #1446121
2015-04-20 19:15:15 +03:00
Stan Lagun
a855e9a879 Adds support for several applications in single Pod
Kubernetes doesn't allow to add containers to a Pod that
is already deployed. With this change old pods will be deleted
and either new pod created which will include new container
or Replication Controller will be modified (before Pod delete
so that updated Pods be created instead)

Also now Pods are created only when replica number set to 0.
Otherwise Pods created by ReplicationController alone.

Change-Id: I8552793f39083de47ad07e7013dedb72e0550885
Closes-Bug: #1444208
2015-04-15 00:28:31 +00:00
Stan Lagun
e9a04c4db0 Fixes replication controller deletion
KubernetesCluster method to delete RC was using incorrect
property and there was a typo in execution plan making it
fail on validation

Also renames destroy* methods to delete* methods to match
Kubernetes terms

Change-Id: I2ff71679deeb5ad3692fcc1a5fcfed8fa0e8d94f
Closes-Bug: #1443857
2015-04-15 03:15:58 +03:00
Dmytro Dovbii
7cb39996f0 Restructure murano-apps repository
Change-Id: I9cdb1e4afcb9929c7b7a5437faaa25d284daefdb
Closes-Bug: #1441644
2015-04-14 09:42:21 +03:00