Skip to content

Commit

Permalink
add toleration time to NoExecute effect
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyXiangLi committed Mar 4, 2021
1 parent f013880 commit 089e34b
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/aws-ebs-csi-driver/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "0.9.0"
name: aws-ebs-csi-driver
description: A Helm chart for AWS EBS CSI Driver
version: 0.9.13
version: 0.9.14
kubeVersion: ">=1.17.0-0"
home: https://github.com/kubernetes-sigs/aws-ebs-csi-driver
sources:
Expand Down
7 changes: 7 additions & 0 deletions charts/aws-ebs-csi-driver/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ spec:
{{- if .Values.tolerateAllTaints }}
- operator: Exists
{{- end }}
{{ - if .Values.tolerateAllTaintsWithTolerationSeconds }}
- operator: Exists
effect: NoSchedule
- operator: Exists
effect: NoExecute
tolerationSeconds: 300
{{ - end }}
{{- with .Values.tolerations }}
{{ toYaml . | indent 8 }}
{{- end }}
Expand Down
7 changes: 7 additions & 0 deletions charts/aws-ebs-csi-driver/templates/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ spec:
{{- if .Values.node.tolerateAllTaints }}
- operator: Exists
{{- end }}
{{ - if .Values.tolerateAllTaintsWithTolerationSeconds }}
- operator: Exists
effect: NoSchedule
- operator: Exists
effect: NoExecute
tolerationSeconds: 300
{{ - end }}
{{- with .Values.node.tolerations }}
{{ toYaml . | indent 8 }}
{{- end }}
Expand Down
3 changes: 2 additions & 1 deletion charts/aws-ebs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ resources:

priorityClassName: ""
nodeSelector: {}
tolerateAllTaints: true
tolerateAllTaints: false
tolerateAllTaintsWithTolerationSeconds: true
tolerations: []
affinity: {}

Expand Down
4 changes: 4 additions & 0 deletions deploy/kubernetes/base/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ spec:
priorityClassName: system-cluster-critical
tolerations:
- operator: Exists
effect: NoSchedule
- operator: Exists
effect: NoExecute
tolerationSeconds: 300
containers:
- name: ebs-plugin
image: k8s.gcr.io/provider-aws/aws-ebs-csi-driver:v0.9.0
Expand Down
4 changes: 4 additions & 0 deletions deploy/kubernetes/base/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ spec:
priorityClassName: system-node-critical
tolerations:
- operator: Exists
effect: NoSchedule
- operator: Exists
effect: NoExecute
tolerationSeconds: 300
containers:
- name: ebs-plugin
securityContext:
Expand Down

0 comments on commit 089e34b

Please sign in to comment.