Kubernetes · Command
kubectl drain
kubectl drain marks a node unschedulable and removes eligible Pods before maintenance. It waits for graceful termination and leaves mirror and DaemonSet Pods in place.
Last updated
Syntax
kubectl drain NODE [flags]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
kubectl cordonkubectl uncordonPodDisruptionBudgetDaemonSetEviction API