Annotation for service LonghornManager will be configurable.

Signed-off-by: Amadeusz Kryze <amadeusz.kryze@gmail.com>
(cherry picked from commit 1e7289dfe0)
This commit is contained in:
Amadeusz Kryze 2022-07-20 12:16:34 +02:00 committed by David Ko
parent c2293062db
commit 7956c08eb5
2 changed files with 9 additions and 0 deletions

View File

@ -127,6 +127,10 @@ metadata:
app: longhorn-manager
name: longhorn-backend
namespace: {{ include "release_namespace" . }}
{{- if .Values.longhornManager.serviceAnnotations }}
annotations:
{{ toYaml .Values.longhornManager.serviceAnnotations | indent 4 }}
{{- end }}
spec:
type: {{ .Values.service.manager.type }}
sessionAffinity: ClientIP

View File

@ -157,6 +157,11 @@ longhornManager:
## and uncomment this example block
# label-key1: "label-value1"
# label-key2: "label-value2"
serviceAnnotations: {}
## If you want to set annotations for the Longhorn Manager delete the `{}` in the line above
## and uncomment this example block
# annotation-key1: "annotation-value1"
# annotation-key2: "annotation-value2"
longhornDriver:
priorityClass: ~