summaryrefslogtreecommitdiffstats
path: root/scripts/provision/hawakular.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-10-06 04:43:13 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-10-06 04:43:13 +0200
commitacd54ba601e34dafac063f94054bb80348e73dcd (patch)
treebb904bbf2d58e2a97d2649193c29d31f174ef8e1 /scripts/provision/hawakular.sh
parent55ae94fdb6a6508f30c0eb0f5dfe95a11ac9682f (diff)
downloadands-acd54ba601e34dafac063f94054bb80348e73dcd.tar.gz
ands-acd54ba601e34dafac063f94054bb80348e73dcd.tar.bz2
ands-acd54ba601e34dafac063f94054bb80348e73dcd.tar.xz
ands-acd54ba601e34dafac063f94054bb80348e73dcd.zip
Script to fullhy clean-up outdated rc
Diffstat (limited to 'scripts/provision/hawakular.sh')
-rwxr-xr-xscripts/provision/hawakular.sh18
1 files changed, 18 insertions, 0 deletions
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