You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/03/09 03:28:39 UTC

[GitHub] [pulsar] kwenZh commented on issue #14611: when i use pulsar in k8s, how to set advertisedListeners in broker.conf for different broker pods ,

kwenZh commented on issue #14611:
URL: https://github.com/apache/pulsar/issues/14611#issuecomment-1062518570


   > you can customize your apply-config-from-env.py script, in `# Update values from Env` block, add some code like:
   > 
   > ```
   > if k.startswith('advertisedListeners'):
   >       v = advertisedListenersValue(os.environ['POD_NAME'])
   >       lines[idx] = '%s=%s\n' % (k, v)
   > ```
   
   fine,   The problem of using your own scripts to render broker.conf is simple,  I struggled with the default script and didn't see the logic to handle the `advertisedListeners`, thank you ,  I understand !
   
   
   
   > you can customize your apply-config-from-env.py script, in `# Update values from Env` block, add some code like:
   > 
   > ```
   > if k.startswith('advertisedListeners'):
   >       v = advertisedListenersValue(os.environ['POD_NAME'])
   >       lines[idx] = '%s=%s\n' % (k, v)
   > ```
   
   


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org