suyanhj commented on issue #218: URL: https://github.com/apache/rocketmq-operator/issues/218#issuecomment-2171409010
> rockermq 版本 4.9.4 k8s 版本 v1.23.17 > > 代码里有设置hostIp的环境变量,如下图 ![image](https://private-user-images.githubusercontent.com/8465969/316689060-94ca90f4-1961-4c06-b7a2-9001a8a10c6c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg1MzIwMTEsIm5iZiI6MTcxODUzMTcxMSwicGF0aCI6Ii84NDY1OTY5LzMxNjY4OTA2MC05NGNhOTBmNC0xOTYxLTRjMDYtYjdhMi05MDAxYThhMTBjNmMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MTZUMDk1NTExWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTk4ZDE2Yzc2MzRhMmUzNjFkMTQ0NjM1NmY3MjY3MjBkNTg2MTllNTU3MTg4ZDkxNjMxMWQyMzY5MzJmMGQ3ZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.Khb5CuIPBP9HqWYetJ0VqofzVXgpYpH_J7HhqxRQjdk) > > 但是broker的xml却没有这个环境变量,如下如 ![image](https://private-user-images.githubusercontent.com/8465969/316689368-f3b11b82-b0b0-4f95-898b-d8888c643085.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg1MzIwMTEsIm5iZiI6MTcxODUzMTcxMSwicGF0aCI6Ii84NDY1OTY5LzMxNjY4OTM2OC1mM2IxMWI4Mi1iMGIwLTRmOTUtODk4Yi1kODg4OGM2NDMwODUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MTZUMDk1NTExWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZWI2OWMxZmIwNGJkZTE2ZDYxNWU1MGEzZjg1NGRhMDE2OTllMjcwYzc5YzQ2MTcxNTk5MjNhNDhmY2ZlOWFhNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.BRZ_pTIq7qoMTC3DL9qENChqv7sjmFIx9SkEtyqGbMQ) 老哥,我也遇到你这种问题了,不过我是看了你提供的代码截图,然后想到代码是从环境变量:POD_IP获取ip,就可以手动指定环境变量即可,从status.podip原样获取,我修改后,可以正常获取ip了 ![image](https://github.com/apache/rocketmq-operator/assets/95021771/52abf2f8-e434-459b-a975-f75bc3505e0a) ![image](https://github.com/apache/rocketmq-operator/assets/95021771/cbd08a7e-3630-4823-8f27-85f1cf847c48) -- 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-unsubscr...@rocketmq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org