Merge pull request #6885 from tvinhas/patch-1

Provide command to "untaint" a node
pull/6811/head
Qiming 2018-01-09 13:32:18 +08:00 committed by GitHub
commit b04482da55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,12 @@ kubectl taint nodes node1 key=value:NoSchedule
places a taint on node `node1`. The taint has key `key`, value `value`, and taint effect `NoSchedule`.
This means that no pod will be able to schedule onto `node1` unless it has a matching toleration.
To remove the taint added by the command above, you can run:
```shell
kubectl taint nodes kube11 key:NoSchedule-
```
You specify a toleration for a pod in the PodSpec. Both of the following tolerations "match" the
taint created by the `kubectl taint` line above, and thus a pod with either toleration would be able
to schedule onto `node1`: