super-lzb opened a new issue, #6998: URL: https://github.com/apache/rocketmq/issues/6998
### Before Creating the Bug Report - [X] I found a bug, not just asking a question, which should be created in [GitHub Discussions](https://github.com/apache/rocketmq/discussions). - [X] I have searched the [GitHub Issues](https://github.com/apache/rocketmq/issues) and [GitHub Discussions](https://github.com/apache/rocketmq/discussions) of this repository and believe that this is not a duplicate. - [X] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ. ### Runtime platform environment OS:("CentOS 7.9.2009") ### RocketMQ version 4.9.7 ### JDK Version 1.8 ### Describe the Bug k8s 自定义镜像部署 rocketmq 集群,把 namesrv:9876 暴露出去,但是 namesrv 返回的 broker ip 是 k8s 集群内ip,外部客户端可以连接 namesrv,但是发送消息不成功:org.apache.rocketmq.client.exception.MQClientException: Send [3] times, still failed, cost [9024]ms, Topic: test, BrokersSent: [broker-b, broker-b, broker-b] ### Steps to Reproduce 1. producer.setNamesrvAddr("${宿主机ip}:${k8s暴露的namesrv端口}") 2. java 客户端访问 k8s 内部mq集群,连接正常但是发送消息时报错:org.apache.rocketmq.client.exception.MQClientException: Send [3] times, still failed, cost [9024]ms, Topic: test, BrokersSent: [broker-b, broker-b, broker-b] ### What Did You Expect to See? 希望可以通过外部客户端访问 k8s 集群内 namesrv 并可以成功发送消息到 broker ### What Did You See Instead? 无 ### Additional Context 无 -- 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]
