* 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
* 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
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
* Increases format of packages
* Adds missed licence headers
* Other minor refactoring
Change-Id: I580bea2eb2f7e4616cd12245367ada8d43c5c4ff
Targets: bp refactor-apps-scripts
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
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)
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
* 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
* LICENSE file placed to every package
* License information is shown during application creation
* License added to every file
Change-Id: I682f3d9a09d0c0b575206d79223c1822c4b94f27
Closes-Bug: #1446121
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
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