feat(helm): support affinity for longhornManager
Signed-off-by: Sjouke de Vries <info@sdvservices.nl>
This commit is contained in:
parent
76eaa3d3c1
commit
68d6e221a1
@ -117,6 +117,10 @@ spec:
|
||||
{{ toYaml .Values.longhornManager.nodeSelector | indent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.longhornManager.affinity }}
|
||||
affinitiy:
|
||||
{{ toYaml .Values.longhornManager.affinity | indent 8 }}
|
||||
{{- end }}
|
||||
serviceAccountName: longhorn-service-account
|
||||
updateStrategy:
|
||||
rollingUpdate:
|
||||
|
@ -56,3 +56,7 @@ spec:
|
||||
{{ toYaml .Values.longhornManager.nodeSelector | indent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.longhornManager.affinity }}
|
||||
affinitiy:
|
||||
{{ toYaml .Values.longhornManager.affinity | indent 8 }}
|
||||
{{- end }}
|
||||
|
@ -57,3 +57,7 @@ spec:
|
||||
{{ toYaml .Values.longhornManager.nodeSelector | indent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.longhornManager.affinity }}
|
||||
affinitiy:
|
||||
{{ toYaml .Values.longhornManager.affinity | indent 8 }}
|
||||
{{- end }}
|
||||
|
@ -182,6 +182,18 @@ longhornManager:
|
||||
## and uncomment this example block
|
||||
# label-key1: "label-value1"
|
||||
# label-key2: "label-value2"
|
||||
affinity: {}
|
||||
## If you want to set nodeAffinity for Longhorn Manager DaemonSet, delete the `{}` in the line above
|
||||
## and uncomment this example block
|
||||
# nodeAffinity:
|
||||
# requiredDuringSchedulingIgnoredDuringExecution:
|
||||
# nodeSelectorTerms:
|
||||
# - matchExpressions:
|
||||
# - key: label-key1
|
||||
# operator: In
|
||||
# values:
|
||||
# - label-value1
|
||||
# - label-value2
|
||||
serviceAnnotations: {}
|
||||
## If you want to set annotations for the Longhorn Manager service, delete the `{}` in the line above
|
||||
## and uncomment this example block
|
||||
|
Loading…
Reference in New Issue
Block a user