Fix curl command.

Make cleanup easier.

Signed-off-by: Vishnu Kannan <vishnuk@google.com>
This commit is contained in:
Vishnu Kannan
2016-03-30 17:01:19 -07:00
committed by Vishnu kannan
parent 61acb684c9
commit 9232f7f2fa
+10 -5
View File
@@ -65,6 +65,7 @@ Here's a diagram of what the final result will look like:
--net=host \ --net=host \
--pid=host \ --pid=host \
--privileged \ --privileged \
--name=kubelet \
gcr.io/google_containers/hyperkube-${ARCH}:${K8S_VERSION} \ gcr.io/google_containers/hyperkube-${ARCH}:${K8S_VERSION} \
/hyperkube kubelet \ /hyperkube kubelet \
--hostname-override=127.0.0.1 \ --hostname-override=127.0.0.1 \
@@ -172,7 +173,11 @@ ip=$(kubectl get svc nginx --template={{.spec.clusterIP}})
echo $ip echo $ip
{% endraw %}``` {% endraw %}```
On Linux the IP is directly accessible via a web browser. Hit the webserver with this IP:
```shell{% raw %}
curl $ip
{% endraw %}```
On OS X, since docker is running inside a VM, run the following command instead: On OS X, since docker is running inside a VM, run the following command instead:
@@ -196,10 +201,10 @@ kubectl delete service,deployments nginx
2\. Delete all the containers including the kubelet: 2\. Delete all the containers including the kubelet:
Many of these containers run under the management of the `kubelet` binary, which attempts to keep containers running, even if they fail. ```shell
So, in order to turn down the cluster, you need to first kill the kubelet container, and then any other containers. docker rm -f kubelet
docker rm -f `docker ps | grep k8s | awk '{print $1}'`
You may use `docker rm -f $(docker ps -aq)`, note this removes _all_ containers running under Docker, so use with caution. ```
3\. Cleanup the filesystem: 3\. Cleanup the filesystem: