Skip to content

Commit

Permalink
add affinity to daemonset
Browse files Browse the repository at this point in the history
use correct values

add default values for affinity

na

one line
  • Loading branch information
karaktaka committed May 6, 2024
1 parent cfffbca commit 27eb9b6
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 27eb9b6

Please sign in to comment.