Update docs to include example of tolerations in a pod (#16157)
Co-Authored-By: Tim Bannister <tim@scalefactory.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
5f9fe16f28
commit
8c0be10bfd
@@ -61,6 +61,10 @@ tolerations:
|
|||||||
effect: "NoSchedule"
|
effect: "NoSchedule"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Here’s 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:
|
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
|
* 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"
|
||||||
Reference in New Issue
Block a user