networking.podService and advertisedListeners.
Overview
Two features work together to enable per-pod access:
Use cases:
- Istio Federation / Multi-cluster communication
- Direct pod access scenarios
Configuration
Example
Configuration Reference
networking.podService
advertisedListeners
Use a non-default port (e.g., 6660) to avoid conflict with the default
brokerServicePort (6650).Verify Configuration
Check Created Services
Verify Service Selector
{"statefulset.kubernetes.io/pod-name":"pulsar-broker-0"}
Verify Advertised Addresses
Each broker must advertise its own address. Compare two brokers:pulsar-broker-0.pulsar.svc.cluster.local and pulsar-broker-1.pulsar.svc.cluster.local.
If both brokers show the same host, hostTemplate is missing $(POD_NAME) or $(POD_ID), and
clients will not be able to reach individual brokers.