diff --git a/charts/kafka-ui/templates/service.yaml b/charts/kafka-ui/templates/service.yaml index 337e1457..3c6e448c 100644 --- a/charts/kafka-ui/templates/service.yaml +++ b/charts/kafka-ui/templates/service.yaml @@ -5,6 +5,9 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{- include "kafka-ui.labels" . | nindent 4 }} + {{- with .Values.service.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} {{- if .Values.service.annotations }} annotations: {{ toYaml .Values.service.annotations | nindent 4 }} diff --git a/charts/kafka-ui/values.yaml b/charts/kafka-ui/values.yaml index 72038e9b..e7943af9 100644 --- a/charts/kafka-ui/values.yaml +++ b/charts/kafka-ui/values.yaml @@ -92,6 +92,12 @@ securityContext: # runAsUser: 1000 service: + # Annotations for the Service + annotations: {} + + # Labels for the Service + labels: {} + type: ClusterIP port: 80 # In case of service type LoadBalancer, you can specify reserved static IP