diff --git a/templates/service.yaml b/templates/service.yaml index cc9c5d8..9a650e1 100644 --- a/templates/service.yaml +++ b/templates/service.yaml @@ -8,6 +8,9 @@ metadata: chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} +{{- if .Values.service.labels }} +{{ toYaml .Values.service.labels | indent 4 }} +{{- end }} {{- if .Values.service.annotations }} annotations: {{ toYaml .Values.service.annotations | indent 4 }} diff --git a/values.yaml b/values.yaml index f48949d..4bdab45 100644 --- a/values.yaml +++ b/values.yaml @@ -37,6 +37,8 @@ service: # loadBalancerSourceRanges: annotations: {} # foo.io/bar: "true" + labels: {} + # foo.io/baz: "false" ingress: enabled: false className: nginx