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
This commit is contained in:
Steven Dake 2014-10-14 22:07:28 +00:00
parent ec29d5df62
commit b79ec04b70
4 changed files with 21 additions and 0 deletions

View File

@ -3,4 +3,5 @@
cd $(git rev-parse --show-toplevel)
./tools/start-all-services
./tools/start-all-replications
./tools/start-all-pods

13
tools/start-all-replications Executable file
View File

@ -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

View File

@ -2,6 +2,7 @@
cd $(git rev-parse --show-toplevel)
./tools/stop-all-replications
./tools/stop-all-pods
./tools/stop-all-services

6
tools/stop-all-replications Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
kubecfg list replicationControllers |
awk 'NR>2 {print $1}' |
xargs -i kubecfg delete replicationControllers/{}