headless-service.yaml 550 B

12345678910111213141516171819202122
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: {{ include "kafka.fullname" . }}-headless
  5. labels:
  6. {{- include "kafka.labels" . | nindent 4 }}
  7. spec:
  8. type: NodePort
  9. publishNotReadyAddresses: true
  10. ports:
  11. - name: tcp-kafka-int
  12. port: {{ .Values.port.kafkaInternal }}
  13. protocol: TCP
  14. nodePort: 32405
  15. targetPort: tcp-kafka-int
  16. - name: tcp-kafka-ext
  17. port: {{ .Values.port.kafkaExternal }}
  18. protocol: TCP
  19. targetPort: tcp-kafka-ext
  20. nodePort: 32406
  21. selector:
  22. {{- include "kafka.selectorLabels" . | nindent 4 }}