Amanda
11/05/2025, 12:55 AMAmanda
11/06/2025, 3:34 PMRunLLM
11/06/2025, 3:34 PMinitialize-cluster-metadata job sets the cluster URLs (web service and broker service) to the internal Kubernetes DNS names, not the external LoadBalancer IP. This means pulsar-admin clusters get cluster will show internal DNS names, which are not accessible externally. To fix this, you must override the --web-service-url, --web-service-url-tls, --broker-service-url, and --broker-service-url-tls arguments in the Helm values to use your external LoadBalancer IP or DNS name instead of the internal service DNS.
You can do this by setting the initialize.metadata section in your values.yaml to provide the correct URLs, for example:
initialize:
metadata:
webServiceUrl: "http://external-loadbalancer-ip:80"
webServiceUrlTls: "https://external-loadbalancer-ip:443"
brokerServiceUrl: "pulsar://external-loadbalancer-ip:6650"
brokerServiceUrlTls: "pulsar+ssl://external-loadbalancer-ip:6651"
Then, reinstall or upgrade your Helm release. For more, see Pulsar Helm Deploy Docs and Pulsar Bare Metal Deploy Docs. Would you like more detail on how to apply this or how it affects client connectivity?
Sources:
- Pulsar Bare Metal Deploy Docs
- Pulsar Helm Deploy Docs 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.Amanda
11/06/2025, 3:38 PMAmanda
11/06/2025, 3:38 PMRunLLM
11/06/2025, 3:38 PMinitialize-cluster-metadata job uses internal Kubernetes DNS names for --web-service-url and --broker-service-url. This is only resolvable inside the cluster, not from outside.
2. Override the URLs: In your values.yaml, explicitly set the external URLs under the initialize.metadata section. For example, if your LoadBalancer IP is `35.123.45.67`:
initialize:
metadata:
webServiceUrl: "http://35.123.45.67:80"
webServiceUrlTls: "https://35.123.45.67:443"
brokerServiceUrl: "pulsar://35.123.45.67:6650"
brokerServiceUrlTls: "pulsar+ssl://35.123.45.67:6651"
3. Apply the Change:
- If you haven’t deployed yet, just include this in your values.yaml before running helm install.
- If you’ve already deployed, update your values.yaml and run helm upgrade ... to re-apply. You may need to manually update the cluster metadata if it was already initialized with the wrong URLs. Use pulsar-admin clusters update to fix it, e.g.:
bin/pulsar-admin clusters update cluster-name \
--broker-url pulsar://35.123.45.67:6650 \
--url http://35.123.45.67:80
4. Verify: Run bin/pulsar-admin clusters get cluster-name and confirm the URLs now show the external IP.
5. Why This Matters: Clients outside the Kubernetes cluster (including Pulsar clients, admin tools, and geo-replication) need to resolve the service URLs to connect. If the URLs are internal, external clients will fail to connect.
This approach is documented in the Pulsar Bare Metal Deploy Docs and is compatible with the Helm chart’s override mechanism. Let me know if you need the exact Helm command or more troubleshooting steps.
Sources:
- https://docs.streamnative.io/docs/networking#access-types
- https://docs.streamnative.io/private/tls-load-balancer-1.11.0#%3AR69n6%3A-gradient 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.Amanda
11/06/2025, 3:45 PMRunLLM
11/06/2025, 3:45 PMinitialize: true in your values.yaml will cause the Helm chart to use default internal DNS names for cluster URLs during metadata initialization. To use your external LoadBalancer IP, you need to add or override the initialize.metadata section as described previously—simply having initialize: true is not enough for external access configuration.
You should update your values.yaml to include:
initialize:
enabled: true
metadata:
webServiceUrl: "http://external-loadbalancer-ip:80"
webServiceUrlTls: "https://external-loadbalancer-ip:443"
brokerServiceUrl: "pulsar://external-loadbalancer-ip:6650"
brokerServiceUrlTls: "pulsar+ssl://external-loadbalancer-ip:6651"
Replace external-loadbalancer-ip with your actual IP or DNS. Would you like more detail on how to apply this and re-initialize the cluster metadata?
Sources:
- Pulsar Bare Metal Deploy Docs 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.