Skip to content

Commit

Permalink
Merge pull request #1277 from vauchok/master
Browse files Browse the repository at this point in the history
Feature: Node affinity
  • Loading branch information
k8s-ci-robot authored Jun 28, 2022
2 parents ec175f0 + 03c48e2 commit c6b7d28
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
12 changes: 3 additions & 9 deletions charts/aws-ebs-csi-driver/templates/node-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,9 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: eks.amazonaws.com/compute-type
operator: NotIn
values:
- fargate
{{- with .Values.node.affinity }}
affinity: {{- toYaml . | nindent 8 }}
{{- end }}
nodeSelector:
kubernetes.io/os: windows
{{- with .Values.node.nodeSelector }}
Expand Down
12 changes: 3 additions & 9 deletions charts/aws-ebs-csi-driver/templates/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,9 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: eks.amazonaws.com/compute-type
operator: NotIn
values:
- fargate
{{- with .Values.node.affinity }}
affinity: {{- toYaml . | nindent 8 }}
{{- end }}
nodeSelector:
kubernetes.io/os: linux
{{- with .Values.node.nodeSelector }}
Expand Down
9 changes: 9 additions & 0 deletions charts/aws-ebs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,15 @@ node:
kubeletPath: /var/lib/kubelet
logLevel: 2
priorityClassName:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: eks.amazonaws.com/compute-type
operator: NotIn
values:
- fargate
nodeSelector: {}
podAnnotations: {}
podLabels: {}
Expand Down

0 comments on commit c6b7d28

Please sign in to comment.