Skip to content

Commit 0c835d8

Browse files
authored
Merge pull request #40996 from matheusjunior/update-node-drain-doc
Add note about `nodeName` ignoring a drained node
2 parents 538669a + b230abc commit 0c835d8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

content/en/docs/tasks/administer-cluster/safely-drain-node.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@ and respecting the PodDisruptionBudget you have defined). It is then safe to
6060
bring down the node by powering down its physical machine or, if running on a
6161
cloud platform, deleting its virtual machine.
6262

63+
{{< note >}}
64+
If any new Pods tolerate the `node.kubernetes.io/unschedulable` taint, then those Pods
65+
might be scheduled to the node you have drained. Avoid tolerating that taint other than
66+
for DaemonSets.
67+
68+
If you or another API user directly set the [`nodeName`](/docs/concepts/scheduling-eviction/assign-pod-node/#nodename)
69+
field for a Pod (bypassing the scheduler), then the Pod is bound to the specified node
70+
and will run there, even though you have drained that node and marked it unschedulable.
71+
{{< /note >}}
72+
6373
First, identify the name of the node you wish to drain. You can list all of the nodes in your cluster with
6474

6575
```shell

0 commit comments

Comments
 (0)