diff options
| author | Jenkins <jenkins@review.openstack.org> | 2014-10-15 18:47:18 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2014-10-15 18:47:18 +0000 |
| commit | 05cca9915ab066622ed3ba487e6a4408cc2a19f0 (patch) | |
| tree | 39369fa801eda990c56bc9d4e463732f8e5b6e17 | |
| parent | 8b4f8d91ad4aac047a11838a4fa11c51fd693fdc (diff) | |
| parent | b79ec04b70ffe631039817a5c3ba3b0e902cc161 (diff) | |
| download | kolla-05cca9915ab066622ed3ba487e6a4408cc2a19f0.tar.gz kolla-05cca9915ab066622ed3ba487e6a4408cc2a19f0.zip | |
Merge "Add replication controllers to start and stop scripts"
| -rwxr-xr-x | tools/start | 1 | ||||
| -rwxr-xr-x | tools/start-all-replications | 13 | ||||
| -rwxr-xr-x | tools/stop | 1 | ||||
| -rwxr-xr-x | tools/stop-all-replications | 6 |
4 files changed, 21 insertions, 0 deletions
diff --git a/tools/start b/tools/start index 2daad084e..bf7bd8735 100755 --- a/tools/start +++ b/tools/start @@ -3,4 +3,5 @@ cd $(git rev-parse --show-toplevel) ./tools/start-all-services +./tools/start-all-replications ./tools/start-all-pods 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 + diff --git a/tools/stop b/tools/stop index 12d4e36f5..1a9b6fd10 100755 --- a/tools/stop +++ b/tools/stop @@ -2,6 +2,7 @@ cd $(git rev-parse --show-toplevel) +./tools/stop-all-replications ./tools/stop-all-pods ./tools/stop-all-services diff --git a/tools/stop-all-replications b/tools/stop-all-replications new file mode 100755 index 000000000..aa2dc5954 --- /dev/null +++ b/tools/stop-all-replications @@ -0,0 +1,6 @@ +#!/bin/sh + +kubecfg list replicationControllers | + awk 'NR>2 {print $1}' | + xargs -i kubecfg delete replicationControllers/{} + |
