From acd54ba601e34dafac063f94054bb80348e73dcd Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 6 Oct 2019 04:43:13 +0200 Subject: Script to fullhy clean-up outdated rc --- scripts/provision/hawakular.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 scripts/provision/hawakular.sh (limited to 'scripts/provision/hawakular.sh') diff --git a/scripts/provision/hawakular.sh b/scripts/provision/hawakular.sh new file mode 100755 index 0000000..73e3a87 --- /dev/null +++ b/scripts/provision/hawakular.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +case $1 in + "stop") + oc -n openshift-infra scale --replicas 0 rc/hawkular-metrics + oc -n openshift-infra scale --replicas 0 rc/heapster + oc -n openshift-infra scale --replicas 0 dc/hawkular-cassandra + ;; + "start") + oc -n openshift-infra scale --replicas 0 dc/hawkular-cassandra + sleep 1 + oc -n openshift-infra scale --replicas 0 rc/heapster + sleep 1 + oc -n openshift-infra scale --replicas 0 rc/hawkular-metrics + ;; + *) + echo "Usage: $0 stop/start" +esac -- cgit v1.2.1