svc.yaml 658 B

1234567891011121314151617181920212223
  1. {{- if (eq (include "kafka.combinedMode" .) "false") }}
  2. {{- $thisFullName := include "kafka.controller.headless.serviceName" . }}
  3. {{- $componet := "controller" }}
  4. apiVersion: v1
  5. kind: Service
  6. metadata:
  7. name: {{ $thisFullName | quote }}
  8. labels:
  9. {{- include "kafka.labels" . | nindent 4 }}
  10. component: {{ $componet | quote }}
  11. spec:
  12. type: ClusterIP
  13. clusterIP: None
  14. publishNotReadyAddresses: true
  15. ports:
  16. - port: {{ .Values.controller.service.port }}
  17. targetPort: controller
  18. protocol: TCP
  19. name: controller
  20. selector:
  21. {{- include "kafka.selectorLabels" . | nindent 4 }}
  22. component: {{ $componet | quote }}
  23. {{- end }}