apiVersion: v1
kind: Service
metadata:
  name: {{ template "kafka-manager.fullname" . }}
  labels:
    app.kubernetes.io/instance: {{ .Release.Name }}
    app.kubernetes.io/managed-by: {{ .Release.Service }}
    app.kubernetes.io/name: {{ include "kafka-manager.name" . }}
    app.kubernetes.io/version: {{ .Chart.AppVersion | replace "+" "_" | trunc 63 }}
    helm.sh/chart: {{ include "kafka-manager.chart" . }}
spec:
  type: {{ .Values.service.type }}
  ports:
    - name: kafka-manager
      port: {{ .Values.service.port }}
      targetPort: kafka-manager
      protocol: TCP
  selector:
    app: {{ template "kafka-manager.name" . }}
    release: {{ .Release.Name }}
