File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
content/en/docs/tasks/administer-cluster Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -69,10 +69,12 @@ Next, tell Kubernetes to drain the node:
69
69
kubectl drain --ignore-daemonsets < node name>
70
70
```
71
71
72
- If there are daemon set managed pods, drain will not proceed without ` --ignore-daemonsets ` ,
73
- and regardless it will not delete any daemon set managed pods,
74
- because those pods would be immediately replaced by the daemon set controller,
75
- which ignores unschedulable markings.
72
+ If there are DaemonSet managed pods, drain will usually not succeed unless you specify
73
+ ` --ignore-daemonsets ` . The ` kubectl drain ` subcommand on its own does not actually drain
74
+ a node of its DaemonSet pods:
75
+ the DaemonSet controller (part of the control plane) immediately replaces missing Pods with
76
+ new equivalent Pods. The DaemonSet controller also creates Pods that ignore unschedulable
77
+ taints, which allows the new Pods to launch onto a node that you are draining.
76
78
77
79
Once it returns (without giving an error), you can power down the node
78
80
(or equivalently, if on a cloud platform, delete the virtual machine backing the node).
You can’t perform that action at this time.
0 commit comments