Add `--ignore-daemonsets` to docs of `kubectl drain`
This commit is contained in:
parent
8d326ad840
commit
27ab5439c8
|
|
@ -66,9 +66,14 @@ kubectl get nodes
|
|||
Next, tell Kubernetes to drain the node:
|
||||
|
||||
```shell
|
||||
kubectl drain <node name>
|
||||
kubectl drain --ignore-daemonsets <node name>
|
||||
```
|
||||
|
||||
If there are daemon set managed pods, drain will not proceed without `--ignore-daemonsets`,
|
||||
and regardless it will not delete any daemon set managed pods,
|
||||
because those pods would be immediately replaced by the daemon set controller,
|
||||
which ignores unschedulable markings.
|
||||
|
||||
Once it returns (without giving an error), you can power down the node
|
||||
(or equivalently, if on a cloud platform, delete the virtual machine backing the node).
|
||||
If you leave the node in the cluster during the maintenance operation, you need to run
|
||||
|
|
|
|||
Loading…
Reference in New Issue