win5do opened a new issue #2268:
URL: https://github.com/apache/rocketmq/issues/2268


   I want deploy rocketmq  on kubernetes, but I ran into many problems.
   
   # Feature request
   
   ## dLegerPeers config
   
   The config 
`dLegerPeers=n0-rocketmq-broker-01:40911;n1-rocketmq-broker-02:40911;n2-rocketmq-broker-03:40911`
 get `index out of range` exception,  because the code use `-` separator. 
   
   For valid dns consider refer to 
https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names.
   
   It seems that the dependency has been fixed, but it has not been updated: 
https://github.com/openmessaging/openmessaging-storage-dledger/commit/1cef542b7b631fe0dd66df14a1fd8d37eeeda867
   
   ## advertised port
   
   Some port is hard code, can't modify by config. And don't have config such 
as `advertised.listeners` in Kafka.
     
https://github.com/apache/rocketmq/blob/9f95a972e10e0681bc3f2d00e9957aa212e897b5/broker/src/main/java/org/apache/rocketmq/broker/BrokerController.java#L266
       
    
   
https://github.com/apache/rocketmq/blob/d1b4e47c26576cf4fa543bbdd8c6f09643220bed/broker/src/main/java/org/apache/rocketmq/broker/BrokerStartup.java#L185
   
   Accessing from outside k8s is very troublesome, the client get `host:port` 
from Nameserver, but it is the inner container `svc:port`. 
   
   The office operator (https://github.com/apache/rocketmq-operator) also not 
did this well. 
   
   So we must config `hostPort/nodePort == containerPort == listenPort(in 
config)`. Same for the vipChannel port `listPort-2`.
   
   So `advertised.listeners` is needed.
   
   Is there  plan for improvement ?


----------------------------------------------------------------
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.

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


Reply via email to