apiVersion: v1 kind: Service metadata: name: {{ include "kafka.fullname" . }}-headless labels: {{- include "kafka.labels" . | nindent 4 }} spec: type: NodePort publishNotReadyAddresses: true ports: - name: tcp-kafka-int port: {{ .Values.port.kafkaInternal }} protocol: TCP nodePort: 32405 targetPort: tcp-kafka-int - name: tcp-kafka-ext port: {{ .Values.port.kafkaExternal }} protocol: TCP targetPort: tcp-kafka-ext nodePort: 32406 selector: {{- include "kafka.selectorLabels" . | nindent 4 }}