diff --git a/charts/podinfo/templates/service.yaml b/charts/podinfo/templates/service.yaml index 040769a0a..2243a2de3 100644 --- a/charts/podinfo/templates/service.yaml +++ b/charts/podinfo/templates/service.yaml @@ -6,6 +6,9 @@ metadata: namespace: {{ include "podinfo.namespace" . }} labels: {{- include "podinfo.labels" . | nindent 4 }} + {{- with .Values.service.additionalLabels }} + {{- toYaml . | nindent 4 }} + {{- end }} {{- with .Values.service.annotations }} annotations: {{ toYaml . | indent 4 }} diff --git a/charts/podinfo/values.yaml b/charts/podinfo/values.yaml index f34a78cc9..22aa722c6 100644 --- a/charts/podinfo/values.yaml +++ b/charts/podinfo/values.yaml @@ -41,6 +41,7 @@ service: # NOTE: requires privileged container with NET_BIND_SERVICE capability -- this is useful for testing # in local clusters such as kind without port forwarding hostPort: + additionalLabels: {} # enable h2c protocol (non-TLS version of HTTP/2) h2c: