kwenZh opened a new issue #14611:
URL: https://github.com/apache/pulsar/issues/14611


   
   how to set advertisedListeners in broker.conf for different broker pods  , 
when i use pulsar in k8s,such as:
   ```
   pulsar-cluster-broker-0
   pulsar-cluster-broker-1
   pulsar-cluster-broker-2
   ```
   
   and broker.conf  for pod:  pulsar-cluster-broker-0
   ```
   
advertisedListeners=internal:pulsar://pulsar-cluster-broker-0.pulsar-cluster-broker.pulsar.svc.cluster.local:6650,external:pulsar://x.x.x.x34000
   ```
   
   for pulsar-cluster-broker-1
   ```
   
advertisedListeners=internal:pulsar://pulsar-cluster-broker-1.pulsar-cluster-broker.pulsar.svc.cluster.local:6650,external:pulsar://x.x.x.x34000
   ```
   
   
   in pulsar-broker ConfigMap value:
   ```
   advertisedListeners: ""
   ```
   
   and i can get POD_NAME in env.
   ```
    env:
             - name: POD_NAME
               valueFrom:
                 fieldRef:
                   apiVersion: v1
                   fieldPath: metadata.name 
   ```
   how to use  bin/apply-config-from-env.py conf/bookkeeper.conf to set 
advertisedListeners in broker.conf,  Assign different values with env:  POD_NAME
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to