supplement the cleanup scripts

This commit is contained in:
Young 2015-04-12 15:12:43 +08:00
parent e4aa1b3924
commit d1a6cee15e
2 changed files with 13 additions and 0 deletions

View File

@ -194,6 +194,18 @@ redis-master
redis-slave-controller
redis-slave
```
However, the command will not delete the pods created by the replication controller. You can delete the pods manually.
If you want to delete the pods together, you can use the commands below instead.
``` shell
cluster/kubectl.sh stop -f examples/guestbook-go/guestbook-controller.json
cluster/kubectl.sh stop -f examples/guestbook-go/redis-slave-controller.json
cluster/kubectl.sh stop -f examples/guestbook-go/redis-master-controller.json
cluster/kubectl.sh delete -f examples/guestbook-go/guestbook-service.json
cluster/kubectl.sh delete -f examples/guestbook-go/redis-slave-service.json
cluster/kubectl.sh delete -f examples/guestbook-go/redis-master-service.json
```
To turn down a Kubernetes cluster:
```shell

View File

@ -435,6 +435,7 @@ kubectl stop -f examples/guestbook/redis-slave-controller.json
kubectl stop -f examples/guestbook/frontend-controller.json
kubectl delete -f examples/guestbook/redis-master-service.json
kubectl delete -f examples/guestbook/redis-slave-service.json
kubectl delete -f examples/guestbook/frontend-service.json
```
### Troubleshooting