diff --git a/deploy/helm/templates/csi-s3.yaml b/deploy/helm/templates/csi-s3.yaml index 1b02cc0..ce4e0fb 100644 --- a/deploy/helm/templates/csi-s3.yaml +++ b/deploy/helm/templates/csi-s3.yaml @@ -52,6 +52,15 @@ spec: labels: app: csi-s3 spec: + {{- if .Values.tolerations.create }} + tolerations: + - key: CriticalAddonsOnly + operator: Exists + - effect: NoExecute + operator: Exists + - effect: NoSchedule + operator: Exists + {{- end }} serviceAccount: csi-s3 hostNetwork: true containers: diff --git a/deploy/helm/values.yaml b/deploy/helm/values.yaml index 3c2027c..51aec36 100644 --- a/deploy/helm/values.yaml +++ b/deploy/helm/values.yaml @@ -37,3 +37,7 @@ secret: secretKey: "" # Endpoint endpoint: https://storage.yandexcloud.net + +tolerations: + # Specifies whether the tolerations for Yandex Cloud should be created (CriticalAddonsOnly) + create: true \ No newline at end of file diff --git a/deploy/kubernetes/csi-s3.yaml b/deploy/kubernetes/csi-s3.yaml index e2235db..20aa615 100644 --- a/deploy/kubernetes/csi-s3.yaml +++ b/deploy/kubernetes/csi-s3.yaml @@ -52,6 +52,13 @@ spec: labels: app: csi-s3 spec: + tolerations: + - key: CriticalAddonsOnly + operator: Exists + - effect: NoExecute + operator: Exists + - effect: NoSchedule + operator: Exists serviceAccount: csi-s3 hostNetwork: true containers: