diff --git a/charts/longhorn/templates/deployment-ui.yaml b/charts/longhorn/templates/deployment-ui.yaml index 6bad5cd4..4c3c326b 100644 --- a/charts/longhorn/templates/deployment-ui.yaml +++ b/charts/longhorn/templates/deployment-ui.yaml @@ -89,7 +89,11 @@ metadata: {{- end }} name: longhorn-frontend namespace: {{ include "release_namespace" . }} -spec: + {{- if .Values.longhornManager.serviceAnnotations }} + annotations: +{{ toYaml .Values.longhornManager.serviceAnnotations | indent 4 }} + {{- end }} +sspec: {{- if eq .Values.service.ui.type "Rancher-Proxy" }} type: ClusterIP {{- else }} diff --git a/charts/longhorn/values.yaml b/charts/longhorn/values.yaml index 55805f8b..2f6aadf8 100644 --- a/charts/longhorn/values.yaml +++ b/charts/longhorn/values.yaml @@ -219,6 +219,11 @@ longhornUI: ## and uncomment this example block # label-key1: "label-value1" # label-key2: "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 + # annotation-key1: "annotation-value1" + # annotation-key2: "annotation-value2" longhornConversionWebhook: replicas: 2