diff --git a/common/templates/_service.tpl b/common/templates/_service.tpl index 618cb20ade289daed8586daf7e2e35b8f1e2fea0..bba62aca07a57999a694667a689f875f9b0710d5 100644 --- a/common/templates/_service.tpl +++ b/common/templates/_service.tpl @@ -3,6 +3,12 @@ apiVersion: v1 kind: Service metadata: name: {{ .Values.name }} + {{- with .Values.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} + labels: + {{- include "common.variables.labels" . | nindent 4 }} spec: type: {{ .Values.type | default "ClusterIP" }} {{- with .Values.ports }} @@ -12,4 +18,5 @@ spec: {{- if .Values.additionalConfig }} {{- toYaml .Values.additionalConfig | nindent 2 }} {{- end }} +--- {{- end }}