Skip to content

Commit

Permalink
Add nodeSelector to run on a selection of nodes (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
discanto committed Feb 14, 2024
1 parent 37c6e1b commit 05fc4fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions charts/aws-mountpoint-s3-csi-driver/templates/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ spec:
spec:
nodeSelector:
kubernetes.io/os: linux
{{- with .Values.node.nodeSelector }}
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ .Values.node.serviceAccount.name }}
priorityClassName: system-node-critical
tolerations:
Expand Down
3 changes: 2 additions & 1 deletion charts/aws-mountpoint-s3-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ node:
# Specifies whether a service account should be created
create: true
name: s3-csi-driver-sa
nodeSelector: {}
resources:
requests:
cpu: 10m
Expand Down Expand Up @@ -61,4 +62,4 @@ imagePullSecrets: []
awsAccessSecret:
name: aws-secret
keyId: key_id
accessKey: access_key
accessKey: access_key

0 comments on commit 05fc4fc

Please sign in to comment.