Update zookeeper.md

reviewable/pr2157/r2
Jared 2017-01-09 12:36:29 -08:00 committed by GitHub
parent db5d6de44c
commit 0d9e5069b2
1 changed files with 3 additions and 1 deletions

View File

@ -1063,13 +1063,15 @@ for i in 0 1 2; do kubectl get pod zk-$i --template {{.spec.nodeName}}; echo "";
kubernetes-minion-group-pb41
kubernetes-minion-group-ixsl
kubernetes-minion-group-i4c4
{% endraw %}```
{% endraw %}
```
Use [`kubectl drain`](/docs/user-guide/kubectl/kubectl_drain/) to cordon and
drain the node on which the `zk-0` Pod is scheduled.
```shell {% raw %}
kubectl drain $(kubectl get pod zk-0 --template {{.spec.nodeName}}) --ignore-daemonsets --force --delete-local-data
node "kubernetes-minion-group-pb41" cordoned
WARNING: Deleting pods not managed by ReplicationController, ReplicaSet, Job, or DaemonSet: fluentd-cloud-logging-kubernetes-minion-group-pb41, kube-proxy-kubernetes-minion-group-pb41; Ignoring DaemonSet-managed pods: node-problem-detector-v0.1-o5elz
pod "zk-0" deleted
node "kubernetes-minion-group-pb41" drained