summaryrefslogtreecommitdiff
path: root/tools/start-all-replications
diff options
context:
space:
mode:
authorSteven Dake <sdake@redhat.com>2014-10-14 22:07:28 +0000
committerSteven Dake <sdake@redhat.com>2014-10-15 07:22:39 -0700
commitb79ec04b70ffe631039817a5c3ba3b0e902cc161 (patch)
tree7bffab9b11779870486dab5264afcdb8058f28f6 /tools/start-all-replications
parentec29d5df621c148ea20cfd48d125cb119f865a91 (diff)
downloadkolla-b79ec04b70ffe631039817a5c3ba3b0e902cc161.tar.gz
kolla-b79ec04b70ffe631039817a5c3ba3b0e902cc161.zip
Add replication controllers to start and stop scripts
replicaton controllers are now automatically started by the start scripts and killed by the stop script Change-Id: I15d15ff9b1b640bd0f8cace872a827ecfe476ca3
Diffstat (limited to 'tools/start-all-replications')
-rwxr-xr-xtools/start-all-replications13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/start-all-replications b/tools/start-all-replications
new file mode 100755
index 000000000..b88572f4a
--- /dev/null
+++ b/tools/start-all-replications
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+cd $(git rev-parse --show-toplevel)
+
+services='
+nova-compute
+'
+
+for svc in $services; do
+ kubecfg -c "k8s/replication/${svc}-replication.yaml" create \
+ replicationControllers
+done
+