Skip to content
masterclass Buddy

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.

Subscribe
  • kubectl cordon
  • kubectl uncordon
  • PodDisruptionBudget
  • DaemonSet
  • Eviction API

Source: kubectl drain | Kubernetes. Checked 2026-11-03.