Skip to content

Commit

Permalink
Allow to set nodeAffinity for controller
Browse files Browse the repository at this point in the history
  • Loading branch information
kvaster authored and chrislusf committed Mar 29, 2024
1 parent f657740 commit b402b51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deploy/helm/seaweedfs-csi-driver/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ spec:
priorityClassName: system-cluster-critical
serviceAccountName: {{ template "seaweedfs-csi-driver.name" . }}-controller-sa
affinity:
{{- if and .Values.controller.affinity .Values.controller.affinity.nodeAffinity }}
nodeAffinity: {{ toYaml .Values.controller.affinity.nodeAffinity | nindent 10 }}
{{- end }}
{{- if and .Values.controller.affinity .Values.controller.affinity.podAffinity }}
podAffinity: {{ toYaml .Values.controller.affinity.podAffinity | nindent 10 }}
{{- end }}
Expand Down

0 comments on commit b402b51

Please sign in to comment.