feat(helm): support affinity for longhornManager

Signed-off-by: Sjouke de Vries <info@sdvservices.nl>
This commit is contained in:
Sjouke de Vries 2022-12-29 08:31:41 +01:00 committed by David Ko
parent 76eaa3d3c1
commit 68d6e221a1
4 changed files with 24 additions and 0 deletions

View File

@ -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:

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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