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.
This commit is contained in:
Matt Liggett
2015-10-30 17:16:57 -07:00
parent 547bf75b54
commit c6e9ad066e
17 changed files with 1621 additions and 2 deletions

View File

@@ -448,6 +448,7 @@ function kube::build::source_targets() {
test
third_party
contrib/completions/bash/kubectl
contrib/mesos
.generated_docs
)
if [ -n "${KUBERNETES_CONTRIB:-}" ]; then