Initial node drain implementation for #3885.
It cordons (marks unschedulable) the given node, and then deletes every
pod on it, optionally using a grace period. It will not delete pods
managed by neither a ReplicationController nor a DaemonSet without the
use of --force.
Also add cordon/uncordon, which just toggle node schedulability.
Showing
pkg/kubectl/cmd/drain.go
0 → 100644
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment