k8wiz
Kubernetes
Easy
Commands

After maintenance on a drained Kubernetes node, which command lets the scheduler place new pods on it again?

Select your answer:

Show answer and explanation

Answer: kubectl uncordon <node>

Explanation

kubectl drain cordons the node before evicting pods, which marks it unschedulable. kubectl uncordon removes that mark so the scheduler can use the node again. It doesn't move existing pods back; the node only receives new pods.

Read more about Kubernetes