diff --git a/deploy/k8s/chart/templates/service.yaml b/deploy/k8s/chart/templates/service.yaml index fa7b5c7..cd8505f 100644 --- a/deploy/k8s/chart/templates/service.yaml +++ b/deploy/k8s/chart/templates/service.yaml @@ -4,6 +4,8 @@ metadata: labels: {{- include "cortex-tenant.labels" . | nindent 4 }} name: {{ include "cortex-tenant.fullname" . }} + annotations: + {{- toYaml .Values.service.annotations | nindent 4 }} spec: type: {{ .Values.service.type }} ports: diff --git a/deploy/k8s/chart/values.schema.json b/deploy/k8s/chart/values.schema.json index ae72aaa..6b9f24e 100644 --- a/deploy/k8s/chart/values.schema.json +++ b/deploy/k8s/chart/values.schema.json @@ -64,6 +64,12 @@ "LoadBalancer" ] }, + + "annotations": { + "type": "object", + "title": "Annotations", + "description": "Annotations for the service" + }, "port": { "type": "integer", "title": "Port", diff --git a/deploy/k8s/chart/values.yaml b/deploy/k8s/chart/values.yaml index 0bcb675..616cc0a 100644 --- a/deploy/k8s/chart/values.yaml +++ b/deploy/k8s/chart/values.yaml @@ -17,6 +17,7 @@ image: # - myRegistryKeySecretName service: + annotations: {} # -- The type of service type: ClusterIP # -- The port on which the service listens for traffic