datastax / pulsar-helm-chart

Apache Pulsar Helm chart
Apache License 2.0
47 stars 38 forks source link

Zookeeper service accessed by shortname #184

Closed nuriel77 closed 2 years ago

nuriel77 commented 2 years ago

It is only possible to access Zookeeper service via shortname (pulsar-zookeeper-ca:2181) https://github.com/datastax/pulsar-helm-chart/blob/db0c121890c8856ef6d26494396cf6a7b921914c/helm-chart-sources/pulsar/templates/bookkeeper/bookkeeper-configmap.yaml#L31

I understand that this works for DNS resolution since the brokers live in the same namespace and the domain is present in the search option of the /etc/resolv.conf. However, we'd like to avoid having to generate certificates using short-names. Is it possible to add an option to add a full domain for the zookeeper service?

For example something like: {{ template "pulsar.fullname" . }}-{{ .Values.zookeeper.component }}-ca{{- if .Values.zookeeper.domain -}}.{{ .Values.zookeeper.domain }}{{- end -}}:2281

Thanks