k8s-docker-suite-app-murano/Kubernetes/KubernetesCluster/package/Resources/RestartContainers.template
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

31 lines
873 B
Plaintext

# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
FormatVersion: 2.0.0
Version: 1.0.0
Name: Restart Docker Containers
Parameters:
podName: $podName
Body: |
restartContainers(args.podName)
Scripts:
restartContainers:
Type: Application
Version: 1.0.0
EntryPoint: restartContainers.sh
Options:
captureStdout: true
captureStderr: true