From 0d5ac0b1205c4fc2ba7afa6ff9ed000a5085b6ee Mon Sep 17 00:00:00 2001 From: Andrei Volkov <histme@yandex-team.ru> Date: Fri, 5 Aug 2022 02:13:40 +0300 Subject: [PATCH] Toleration fix for helm chart and yaml. --- deploy/helm/templates/csi-s3.yaml | 9 +++++++++ deploy/helm/values.yaml | 4 ++++ deploy/kubernetes/csi-s3.yaml | 7 +++++++ 3 files changed, 20 insertions(+) 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: