summaryrefslogtreecommitdiffstats
path: root/scripts/provision/hawakular.sh
blob: 73e3a87c1432ae718ed7bfaf5f984cd9153cc59f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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