diff --git a/content/en/docs/tasks/administer-cluster/safely-drain-node.md b/content/en/docs/tasks/administer-cluster/safely-drain-node.md index 8168e057b9..7542adc7bd 100644 --- a/content/en/docs/tasks/administer-cluster/safely-drain-node.md +++ b/content/en/docs/tasks/administer-cluster/safely-drain-node.md @@ -66,9 +66,14 @@ kubectl get nodes Next, tell Kubernetes to drain the node: ```shell -kubectl drain +kubectl drain --ignore-daemonsets ``` +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