diff --git a/charts/aws-ebs-csi-driver/templates/controller.yaml b/charts/aws-ebs-csi-driver/templates/controller.yaml index e541c23d79..147d9da906 100644 --- a/charts/aws-ebs-csi-driver/templates/controller.yaml +++ b/charts/aws-ebs-csi-driver/templates/controller.yaml @@ -41,11 +41,6 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} tolerations: - - key: CriticalAddonsOnly - operator: Exists - - operator: Exists - effect: NoExecute - tolerationSeconds: 300 {{- with .Values.controller.tolerations }} {{- toYaml . | nindent 8 }} {{- end }} diff --git a/charts/aws-ebs-csi-driver/values.yaml b/charts/aws-ebs-csi-driver/values.yaml index bbc143f78f..d13a2fba05 100644 --- a/charts/aws-ebs-csi-driver/values.yaml +++ b/charts/aws-ebs-csi-driver/values.yaml @@ -186,7 +186,12 @@ controller: create: true # A service account will be created for you if set to true. Set to false if you want to use your own. name: ebs-csi-controller-sa # Name of the service-account to be used/created. annotations: {} - tolerations: [] + tolerations: + - key: CriticalAddonsOnly + operator: Exists + - effect: NoExecute + operator: Exists + tolerationSeconds: 300 # TSCs without the label selector stanza # # Example: diff --git a/deploy/kubernetes/base/controller.yaml b/deploy/kubernetes/base/controller.yaml index c35dc32119..37c1969956 100644 --- a/deploy/kubernetes/base/controller.yaml +++ b/deploy/kubernetes/base/controller.yaml @@ -36,8 +36,8 @@ spec: tolerations: - key: CriticalAddonsOnly operator: Exists - - operator: Exists - effect: NoExecute + - effect: NoExecute + operator: Exists tolerationSeconds: 300 securityContext: fsGroup: 1000