12345678910111213141516171819202122232425262728 |
- {{- $svcValues := .Values.broker.service }}
- {{- $thisFullName := include "kafka.broker.headless.serviceName" . }}
- {{- $componet := include "kafka.broker.componet" . }}
- apiVersion: v1
- kind: Service
- metadata:
- name: {{ $thisFullName }}
- labels:
- {{- include "kafka.labels" . | nindent 4 }}
- component: {{ $componet | quote }}
- spec:
- type: ClusterIP
- clusterIP: None
- publishNotReadyAddresses: true
- ports:
- - port: {{ .Values.broker.service.port }}
- targetPort: broker
- protocol: TCP
- name: broker
- {{- if (eq (include "kafka.combinedMode" .) "true") }}
- - port: {{ .Values.controller.service.port }}
- targetPort: controller
- protocol: TCP
- name: controller
- {{- end }}
- selector:
- {{- include "kafka.selectorLabels" . | nindent 4 }}
- component: {{ $componet | quote }}
|