Skip to content

Commit bea5a26

Browse files
authored
Merge pull request #377 from karaktaka/f_enable-affinity-for-helm-chart
Add Affinity to DaemonSet
2 parents 8eef69c + 27eb9b6 commit bea5a26

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

charts/aws-fsx-csi-driver/templates/node-daemonset.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ spec:
4646
- key: "fsx.csi.aws.com/agent-not-ready"
4747
operator: "Exists"
4848
{{- end }}
49+
{{- with .Values.node.affinity }}
50+
affinity: {{- toYaml . | nindent 8 }}
51+
{{- end }}
4952
containers:
5053
- name: fsx-plugin
5154
securityContext:

charts/aws-fsx-csi-driver/values.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,15 @@ node:
9393
- operator: Exists
9494
effect: NoExecute
9595
tolerationSeconds: 300
96+
affinity:
97+
nodeAffinity:
98+
requiredDuringSchedulingIgnoredDuringExecution:
99+
nodeSelectorTerms:
100+
- matchExpressions:
101+
- key: eks.amazonaws.com/compute-type
102+
operator: NotIn
103+
values:
104+
- fargate
96105

97106
nameOverride: ""
98107
fullnameOverride: ""

0 commit comments

Comments
 (0)