kubectl drain
Node ManagementDrain node for maintenance
Options & Flags
Available options for this command
--ignore-daemonsetsIgnore DaemonSet pods
--delete-emptydir-dataDelete emptyDir data
--forceForce drain
Examples
Common usage examples
Drain node safely
kubectl drain mynode --ignore-daemonsetsDrain including emptyDir pods
kubectl drain mynode --ignore-daemonsets --delete-emptydir-dataNotes
- Evicts pods and cordons node
Related Commands
You might also find these useful