Merge pull request #22070 from vinu2003/correct-node-cleanup-sequence
fix: fixed the sequence of steps to remove node
This commit is contained in:
+6
-2
@@ -531,10 +531,9 @@ Talking to the control-plane node with the appropriate credentials, run:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
kubectl drain <node name> --delete-local-data --force --ignore-daemonsets
|
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
|
```bash
|
||||||
kubeadm reset
|
kubeadm reset
|
||||||
@@ -552,6 +551,11 @@ If you want to reset the IPVS tables, you must run the following command:
|
|||||||
ipvsadm -C
|
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
|
If you wish to start over simply run `kubeadm init` or `kubeadm join` with the
|
||||||
appropriate arguments.
|
appropriate arguments.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user