File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
content/en/docs/tasks/administer-cluster Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -66,9 +66,14 @@ kubectl get nodes
66
66
Next, tell Kubernetes to drain the node:
67
67
68
68
``` shell
69
- kubectl drain < node name>
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.
76
+
72
77
Once it returns (without giving an error), you can power down the node
73
78
(or equivalently, if on a cloud platform, delete the virtual machine backing the node).
74
79
If you leave the node in the cluster during the maintenance operation, you need to run
You can’t perform that action at this time.
0 commit comments