This commit is contained in:
Stefan Reimer 2020-10-09 12:38:20 -07:00
parent 5781494eda
commit 05993ab6b0

View File

@ -1,27 +0,0 @@
commit 42a8ce1f587f10aa896ece3edbb7d31b627447a0
Author: Stefan Reimer <stefan@zero-downtime.net>
Date: Fri Jul 24 15:05:14 2020 +0100
Actually use nodeSelector for the deamonset, to allow selecting onle workers having the EFS mounted
diff --git a/helm/templates/daemonset.yaml b/helm/templates/daemonset.yaml
index 7fcfc1e..bfe3496 100644
--- a/helm/templates/daemonset.yaml
+++ b/helm/templates/daemonset.yaml
@@ -22,12 +22,15 @@ spec:
spec:
nodeSelector:
beta.kubernetes.io/os: linux
+ {{- with .Values.nodeSelector }}
+ {{- . | toYaml | nindent 8 }}
+ {{- end }}
hostNetwork: true
priorityClassName: system-node-critical
tolerations:
- operator: Exists
{{- with .Values.node.tolerations }}
-{{ toYaml . | indent 8 }}
+ {{- . | toYaml | nindent 8 }}
{{- end }}
containers:
- name: efs-plugin