From ebeca2f758707ed280cd89a548a29fcc34c092e8 Mon Sep 17 00:00:00 2001 From: Hans Date: Mon, 9 Oct 2023 10:17:15 -0500 Subject: [PATCH] Add annotations to service definition --- templates/service.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/service.yaml b/templates/service.yaml index dded4fb..cbc15fb 100644 --- a/templates/service.yaml +++ b/templates/service.yaml @@ -4,6 +4,10 @@ metadata: name: {{ include "openspeedtest.fullname" . }} labels: {{- include "openspeedtest.labels" . | nindent 4 }} + {{- with .Values.service.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: type: {{ .Values.service.type }} {{- if eq .Values.service.type "LoadBalancer" }}