diff --git a/chart/templates/daemonset-sa.yaml b/chart/templates/daemonset-sa.yaml index c9ad974..01f1c5f 100644 --- a/chart/templates/daemonset-sa.yaml +++ b/chart/templates/daemonset-sa.yaml @@ -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 diff --git a/chart/values.yaml b/chart/values.yaml index 8c80cfe..5cef833 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -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: ~