diff --git a/docs/getting-started-guides/locally.md b/docs/getting-started-guides/locally.md index 958d754f25f..166b7026c4d 100644 --- a/docs/getting-started-guides/locally.md +++ b/docs/getting-started-guides/locally.md @@ -107,3 +107,6 @@ hack/local-up-cluster.sh #### kubectl claims to start a container but `get pods` and `docker ps` don't show it. One or more of the kubernetes daemons might've crashed. Tail the logs of each in /tmp. + +#### The pods fail to connect to the services by host names +The local-up-cluster.sh script doesn't start a DNS service. Similar situation can be found [here](https://github.com/GoogleCloudPlatform/kubernetes/issues/6667). You can start a manually. Related documents can be found [here](https://github.com/GoogleCloudPlatform/kubernetes/tree/master/cluster/addons/dns#how-do-i-configure-it) diff --git a/examples/guestbook-go/README.md b/examples/guestbook-go/README.md index 4c3b175b725..8854579f265 100644 --- a/examples/guestbook-go/README.md +++ b/examples/guestbook-go/README.md @@ -182,7 +182,7 @@ For details about limiting traffic to specific sources, see the [GCE firewall do ### Step Seven: Cleanup -You should delete the service which will remove any associated resources that were created e.g. load balancers, forwarding rules and target pools. All the resources (pods, replication controllers and service) can be deleted with a single command: +You should delete the service which will remove any associated resources that were created e.g. load balancers, forwarding rules and target pools. All the resources (replication controllers and service) can be deleted with a single command: ```shell $ cluster/kubectl.sh delete -f examples/guestbook-go current-context: "kubernetes-satnam_kubernetes" @@ -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 diff --git a/examples/guestbook/README.md b/examples/guestbook/README.md index 6dc0f2d3bdf..dd1766ca5f7 100644 --- a/examples/guestbook/README.md +++ b/examples/guestbook/README.md @@ -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