@@ -45,7 +45,7 @@ For each host in turn:
45
45
* SSH into the machine and become ` root ` if you are not already (for example, run ` sudo su - ` ).
46
46
* If the machine is running Ubuntu 16.04, run:
47
47
48
- # curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
48
+ # curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
49
49
# cat <<EOF > /etc/apt/sources.list.d/kubernetes.list
50
50
deb http://apt.kubernetes.io/ kubernetes-xenial main
51
51
EOF
@@ -218,15 +218,17 @@ See the [list of add-ons](/docs/admin/addons/) to explore other add-ons, includi
218
218
219
219
* To uninstall the socks shop, run ` kubectl delete -f microservices-demo/deploy/kubernetes/manifests ` on the master.
220
220
221
- * To undo what ` kubeadm ` did, simply delete the machines you created for this tutorial, or run the script below and then uninstall the packages.
222
- <details >
223
- <pre ><code >systemctl stop kubelet;
224
- docker rm -f $(docker ps -q); mount | grep "/var/lib/kubelet/*" | awk '{print $3}' | xargs umount 1>/dev/null 2>/dev/null;
225
- rm -rf /var/lib/kubelet /etc/kubernetes /var/lib/etcd /etc/cni;
226
- ip link set cbr0 down; ip link del cbr0;
227
- ip link set cni0 down; ip link del cni0;
228
- systemctl start kubelet</code ></pre >
229
- </details > <!-- *syntax-highlighting-hack -->
221
+ * To undo what ` kubeadm ` did, simply delete the machines you created for this tutorial, or run the script below and then start over or uninstall the packages.
222
+
223
+ <br >
224
+ Reset local state:
225
+ <pre ><code >systemctl stop kubelet;
226
+ docker rm -f -v $(docker ps -q);
227
+ find /var/lib/kubelet | xargs -n 1 findmnt -n -t tmpfs -o TARGET -T | uniq | xargs -r umount -v;
228
+ rm -r -f /etc/kubernetes /var/lib/kubelet /var/lib/etcd;
229
+ </code ></pre >
230
+ If you wish to start over, run ` systemctl start kubelet ` followed by ` kubeadm init ` or ` kubeadm join ` .
231
+ <!-- *syntax-highlighting-hack -->
230
232
231
233
## Feedback
232
234
0 commit comments