Skip to content
Permalink
Browse files

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

Co-Authored-By: Tim Bannister <tim@scalefactory.com>
  • Loading branch information
2 people authored and k8s-ci-robot committed Sep 27, 2019
1 parent 5f9fe16 commit 8c0be10bfd3e9e1e565a14a86ff93321f4ac4f7e
@@ -61,6 +61,10 @@ tolerations:
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:

* 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"

0 comments on commit 8c0be10

Please sign in to comment.
You can’t perform that action at this time.