Skip to content

Commit 4694955

Browse files
authored
Merge pull request kubernetes#1426 from errordeveloper/patch-2
Cosmetic tweaks to main kubeadm doc
2 parents 2e36084 + 4d5d295 commit 4694955

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

docs/getting-started-guides/kubeadm.md

+12-10
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ For each host in turn:
4545
* SSH into the machine and become `root` if you are not already (for example, run `sudo su -`).
4646
* If the machine is running Ubuntu 16.04, run:
4747

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 -
4949
# cat <<EOF > /etc/apt/sources.list.d/kubernetes.list
5050
deb http://apt.kubernetes.io/ kubernetes-xenial main
5151
EOF
@@ -218,15 +218,17 @@ See the [list of add-ons](/docs/admin/addons/) to explore other add-ons, includi
218218

219219
* To uninstall the socks shop, run `kubectl delete -f microservices-demo/deploy/kubernetes/manifests` on the master.
220220

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 -->
230232

231233
## Feedback
232234

0 commit comments

Comments
 (0)