Merge pull request #22070 from vinu2003/correct-node-cleanup-sequence

fix: fixed the sequence of steps to remove node
This commit is contained in:
Kubernetes Prow Robot 2020-06-26 16:44:14 -07:00 committed by GitHub
commit 9f1a05ce02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -531,10 +531,9 @@ Talking to the control-plane node with the appropriate credentials, run:
```bash
kubectl drain <node name> --delete-local-data --force --ignore-daemonsets
kubectl delete node <node name>
```
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 <node name>
```
If you wish to start over simply run `kubeadm init` or `kubeadm join` with the
appropriate arguments.