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:
parent
ec29d5df62
commit
b79ec04b70
@ -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
13
tools/start-all-replications
Executable 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
|
||||
|
@ -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
6
tools/stop-all-replications
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
kubecfg list replicationControllers |
|
||||
awk 'NR>2 {print $1}' |
|
||||
xargs -i kubecfg delete replicationControllers/{}
|
||||
|
Loading…
Reference in New Issue
Block a user