From a6bc7d1784a007903693fae67ab5ee4b052253af Mon Sep 17 00:00:00 2001 From: vinu2003 Date: Fri, 26 Jun 2020 15:25:21 +1000 Subject: [PATCH] Marked the command as bash code Marked the command as bash code Marked the command as bash code --- .../tools/kubeadm/create-cluster-kubeadm.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/content/en/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm.md b/content/en/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm.md index 2c40d7ec68..1afd13c4e7 100644 --- a/content/en/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm.md +++ b/content/en/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm.md @@ -531,10 +531,9 @@ Talking to the control-plane node with the appropriate credentials, run: ```bash kubectl drain --delete-local-data --force --ignore-daemonsets -kubectl delete node ``` -Then, on the node being removed, reset all `kubeadm` installed state: +Before removing the node, reset the state installed by `kubeadm`: ```bash kubeadm reset @@ -552,6 +551,11 @@ If you want to reset the IPVS tables, you must run the following command: ipvsadm -C ``` +Now remove the node: +```bash +kubectl delete node +``` + If you wish to start over simply run `kubeadm init` or `kubeadm join` with the appropriate arguments.