Update docs to include example of tolerations in a pod (#16157)

Co-Authored-By: Tim Bannister <tim@scalefactory.com>
This commit is contained in:
Benjamin Fuller
2019-09-27 14:33:35 -06:00
committed by Kubernetes Prow Robot
parent 5f9fe16f28
commit 8c0be10bfd
2 changed files with 19 additions and 0 deletions
@@ -61,6 +61,10 @@ tolerations:
effect: "NoSchedule"
```
Heres an example of a pod that uses tolerations:
{{< codenew file="pods/pod-with-toleration.yaml" >}}
A toleration "matches" a taint if the keys are the same and the effects are the same, and:
* the `operator` is `Exists` (in which case no `value` should be specified), or
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Pod
metadata:
name: nginx
labels:
env: test
spec:
containers:
- name: nginx
image: nginx
imagePullPolicy: IfNotPresent
tolerations:
- key: "example-key"
operator: "Exists"
effect: "NoSchedule"