summaryrefslogtreecommitdiffstats
path: root/scripts/hawakular.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-03-18 22:59:31 +0100
committerSuren A. Chilingaryan <csa@suren.me>2018-03-18 22:59:31 +0100
commit47f350bc3aa85a8bd406d95faf084df2abf74ae9 (patch)
tree72ad1e91bac46d3457f89781dc90f0d6c1c074d5 /scripts/hawakular.sh
parent006f333828db373435daa15483d2ab753048f62a (diff)
downloadands-47f350bc3aa85a8bd406d95faf084df2abf74ae9.tar.gz
ands-47f350bc3aa85a8bd406d95faf084df2abf74ae9.tar.bz2
ands-47f350bc3aa85a8bd406d95faf084df2abf74ae9.tar.xz
ands-47f350bc3aa85a8bd406d95faf084df2abf74ae9.zip
Second revision: includes hostpath mounts, gluster block storage, kaas apps, etc.
Diffstat (limited to 'scripts/hawakular.sh')
-rwxr-xr-xscripts/hawakular.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/hawakular.sh b/scripts/hawakular.sh
new file mode 100755
index 0000000..73e3a87
--- /dev/null
+++ b/scripts/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