Merge pull request #2043 from rutsky/patch-5

fix codeblock formatting
reviewable/pr2077/r1
devin-donnelly 2016-12-27 13:19:25 -08:00 committed by GitHub
commit c75a521bb5
1 changed files with 3 additions and 0 deletions

View File

@ -44,11 +44,13 @@ down its physical machine or, if running on a cloud platform, deleting its
virtual machine. virtual machine.
First, identify the name of the node you wish to drain. You can list all of the nodes in your cluster with First, identify the name of the node you wish to drain. You can list all of the nodes in your cluster with
```shell ```shell
kubectl get nodes kubectl get nodes
``` ```
Next, tell Kubernetes to drain the node: Next, tell Kubernetes to drain the node:
```shell ```shell
kubectl drain <node name> kubectl drain <node name>
``` ```
@ -56,6 +58,7 @@ kubectl drain <node name>
Once it returns (without giving an error), you can power down the node Once it returns (without giving an error), you can power down the node
(or equivalently, if on a cloud platform, delete the virtual machine backing the node). (or equivalently, if on a cloud platform, delete the virtual machine backing the node).
If you leave the node in the cluster during the maintenance operation, you need to run If you leave the node in the cluster during the maintenance operation, you need to run
```shell ```shell
kubectl uncordon <node name> kubectl uncordon <node name>
``` ```