From 713e02a565b86c5b8682e2b5187e4aa0ce2fce1c Mon Sep 17 00:00:00 2001 From: Alexander Berger Date: Thu, 28 Jan 2021 14:32:16 +0100 Subject: [PATCH 1/2] More controll over snapshot-controller scheduling Apply nodeSelector, affinity, tolerations and priorityClassName to snapshoter. --- .../templates/statefulset.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/charts/aws-ebs-csi-driver/templates/statefulset.yaml b/charts/aws-ebs-csi-driver/templates/statefulset.yaml index c3925d5fbd..38fcb9f601 100644 --- a/charts/aws-ebs-csi-driver/templates/statefulset.yaml +++ b/charts/aws-ebs-csi-driver/templates/statefulset.yaml @@ -21,6 +21,22 @@ spec: {{- include "aws-ebs-csi-driver.labels" . | nindent 8 }} spec: serviceAccountName: {{ .Values.serviceAccount.snapshot.name }} + nodeSelector: + kubernetes.io/os: linux + {{- with .Values.nodeSelector }} +{{ toYaml . | indent 8 }} + {{- end }} + priorityClassName: system-cluster-critical + {{- with .Values.affinity }} + affinity: {{ toYaml . | nindent 8 }} + {{- end }} + tolerations: + {{- if .Values.tolerateAllTaints }} + - operator: Exists + {{- end }} + {{- with .Values.tolerations }} +{{ toYaml . | indent 8 }} + {{- end }} containers: - name: snapshot-controller image: k8s.gcr.io/sig-storage/snapshot-controller:v3.0.3 From 528322e6f3225dd3bb768180112c65c7fc0a62ae Mon Sep 17 00:00:00 2001 From: Alexander Berger Date: Fri, 5 Feb 2021 18:09:44 +0100 Subject: [PATCH 2/2] Bump chart version Signed-off-by: Alexander Berger --- charts/aws-ebs-csi-driver/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/aws-ebs-csi-driver/Chart.yaml b/charts/aws-ebs-csi-driver/Chart.yaml index 220d33b861..82d0ec6945 100644 --- a/charts/aws-ebs-csi-driver/Chart.yaml +++ b/charts/aws-ebs-csi-driver/Chart.yaml @@ -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.1 +version: 0.9.2 kubeVersion: ">=1.17.0-0" home: https://github.com/kubernetes-sigs/aws-ebs-csi-driver sources: