From 15fd3deb33c512a34b9cbdf3a6cb978abd1cbf38 Mon Sep 17 00:00:00 2001 From: Valerii Kovalchuk Date: Fri, 2 Sep 2016 14:04:28 +0300 Subject: [PATCH] Add info about recreatePod and restartContainers actions Change-Id: I0f21903f4c89b4bd1393f7eddb03908efc1018b8 --- Kubernetes/README.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Kubernetes/README.rst b/Kubernetes/README.rst index 2575fdc..a438f51 100644 --- a/Kubernetes/README.rst +++ b/Kubernetes/README.rst @@ -129,6 +129,8 @@ KubernetesPod has the following actions: * `scalePodUp`: increase the number of pod replicas by 1. * `scalePodDown`: decrease the number of pod replicas by 1. +* `recreatePod`: delete the pod and create the new one from scratch. +* `restartContainers`: restart Docker containers belonging to the pod. Applications documentation @@ -212,6 +214,11 @@ deploying both Kubernetes and it's nodes. and call `.deploy()`. Can be used as an Action. +`restartContainers(podName)` + * `podName` string holding the name of the pod. + + Call `restartContainers($podName)` on each minion node. + KubernetesNode ~~~~~~~~~~~~~~ Base class for all Kubernetes nodes. @@ -294,3 +301,9 @@ fact that the function has been called. `$.instance.releaseResources()`. Also clear up memoized values for `deployInstance`, `setupEtcd`, `setupNode`, allowing you to call these functions again. + +`restartContainers(podName)` + * `podName` string holding the name of the pod. + + Filter docker containers on the node containing the specified `podName` in + their names and call `docker restart` command on them.