diff --git a/charts/pulsar/templates/broker-service.yaml b/charts/pulsar/templates/broker-service.yaml index a761af6c..d02d64fb 100644 --- a/charts/pulsar/templates/broker-service.yaml +++ b/charts/pulsar/templates/broker-service.yaml @@ -46,7 +46,9 @@ spec: - name: "{{ .Values.tlsPrefix }}pulsarssl" port: {{ .Values.broker.ports.pulsarssl }} {{- end }} + {{- if .Values.broker.service.clusterIP }} clusterIP: "{{ .Values.broker.service.clusterIP }}" + {{- end }} selector: {{- include "pulsar.matchLabels" . | nindent 4 }} component: {{ .Values.broker.component }}