Skip to content

Commit

Permalink
Update daemonset.yaml
Browse files Browse the repository at this point in the history
add nodeAffinity rule to avoid pods on AWS Fargate.
  • Loading branch information
bgsilvait authored Apr 26, 2020
1 parent 314afc3 commit 7ff5d2f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions aws-ebs-csi-driver/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ spec:
annotations: {{ toYaml .Values.node.podAnnotations | nindent 8 }}
{{- end }}
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: eks.amazonaws.com/compute-type
operator: NotIn
values:
- fargate
nodeSelector:
beta.kubernetes.io/os: linux
hostNetwork: true
Expand Down

0 comments on commit 7ff5d2f

Please sign in to comment.