Skip to content

Commit

Permalink
Merge pull request kubernetes#793 from mm4tt/statefulset_tolerations
Browse files Browse the repository at this point in the history
Add tolerations to statefulset.yaml
  • Loading branch information
k8s-ci-robot committed Sep 12, 2019
2 parents e25ec1a + fac794e commit 4c0b3af
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion clusterloader2/testing/load/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ spec:
group: load
name: {{.Name}}
spec:
terminationGracePeriodSeconds: 1
containers:
- name: {{.Name}}
image: k8s.gcr.io/pause:3.1
Expand All @@ -28,3 +27,15 @@ spec:
requests:
cpu: 10m
memory: "10M"
terminationGracePeriodSeconds: 1
# Add not-ready/unreachable tolerations for 15 minutes so that node
# failure doesn't trigger pod deletion.
tolerations:
- key: "node.kubernetes.io/not-ready"
operator: "Exists"
effect: "NoExecute"
tolerationSeconds: 900
- key: "node.kubernetes.io/unreachable"
operator: "Exists"
effect: "NoExecute"
tolerationSeconds: 900

0 comments on commit 4c0b3af

Please sign in to comment.