Clarify that this reverts what kubeadm did rather than uninstalling the packages.

This commit is contained in:
Luke Marsden
2016-09-26 14:20:47 +01:00
parent 3cf4c842f9
commit 7d434d58b9
+7 -9
View File
@@ -213,16 +213,14 @@ See the [list of add-ons](/docs/admin/addons/) to explore other add-ons, includi
* To uninstall the socks shop, run `kubectl delete -f microservices-demo/deploy/kubernetes/manifests` on the master. * To uninstall the socks shop, run `kubectl delete -f microservices-demo/deploy/kubernetes/manifests` on the master.
* To uninstall Kubernetes, simply delete the machines you created for this tutorial, or run the script below. * To undo what `kubeadm` did, simply delete the machines you created for this tutorial, or run the script below and then uninstall the packages.
<details> <details>
``` systemctl stop kubelet;
systemctl stop kubelet docker rm -f $(docker ps -q); mount | grep "/var/lib/kubelet/*" | awk '{print $3}' | xargs umount 1>/dev/null 2>/dev/null;
docker rm -f $(docker ps -q); mount | grep "/var/lib/kubelet/*" | awk '{print $3}' | xargs umount 1>/dev/null 2>/dev/null rm -rf /var/lib/kubelet /etc/kubernetes /var/lib/etcd /etc/cni;
rm -rf /var/lib/kubelet /etc/kubernetes /var/lib/etcd /etc/cni ip link set cbr0 down; ip link del cbr0;
ip link set cbr0 down; ip link del cbr0 ip link set cni0 down; ip link del cni0;
ip link set cni0 down; ip link del cni0 systemctl start kubelet
systemctl start kubelet
```
</details> </details>
## Feedback ## Feedback