Safely evict workloads before maintenance.
Section: Advanced Pod and Controller Operations
Drain node
bash
bash
kubectl drain worker-02 --ignore-daemonsets --delete-emptydir-dataExplanation
Safely evict workloads before maintenance.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Advanced Pod and Controller Operations