Skip to content

Commit

Permalink
Merge pull request #377 from karaktaka/f_enable-affinity-for-helm-chart
Browse files Browse the repository at this point in the history
Add Affinity to DaemonSet
  • Loading branch information
k8s-ci-robot committed May 10, 2024
2 parents 8eef69c + 27eb9b6 commit bea5a26
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/aws-fsx-csi-driver/templates/node-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ spec:
- key: "fsx.csi.aws.com/agent-not-ready"
operator: "Exists"
{{- end }}
{{- with .Values.node.affinity }}
affinity: {{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: fsx-plugin
securityContext:
Expand Down
9 changes: 9 additions & 0 deletions charts/aws-fsx-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ node:
- operator: Exists
effect: NoExecute
tolerationSeconds: 300
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: eks.amazonaws.com/compute-type
operator: NotIn
values:
- fargate

nameOverride: ""
fullnameOverride: ""
Expand Down

0 comments on commit bea5a26

Please sign in to comment.