diff --git a/aws-ebs-csi-driver/templates/daemonset.yaml b/aws-ebs-csi-driver/templates/daemonset.yaml index 1e6e817c7c..a1a5503890 100644 --- a/aws-ebs-csi-driver/templates/daemonset.yaml +++ b/aws-ebs-csi-driver/templates/daemonset.yaml @@ -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 diff --git a/deploy/kubernetes/base/node.yaml b/deploy/kubernetes/base/node.yaml index 9cd6d57590..b0441618f6 100644 --- a/deploy/kubernetes/base/node.yaml +++ b/deploy/kubernetes/base/node.yaml @@ -14,6 +14,15 @@ spec: labels: app: ebs-csi-node spec: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: eks.amazonaws.com/compute-type + operator: NotIn + values: + - fargate nodeSelector: beta.kubernetes.io/os: linux beta.kubernetes.io/arch: amd64