What is the purpose of the kubectl drain command?

Kubernetes Fundamentals Medium

Kubernetes Fundamentals — Medium

What is the purpose of the kubectl drain command?

Key points

  • kubectl drain prioritizes pod safety during eviction
  • Node is marked unschedulable to prevent new pod assignments
  • Respects pod disruption budgets for minimal application impact
  • Does not directly manage log data or DNS cache

Ready to go further?

Related questions