admin管理员组文章数量:1026989
I have a redpanda kafka container running, where the logs show this
brokers: {{id: 0, kafka_advertised_listeners: {{PLAINTEXT:{host: 127.0.0.1, port: 29092}}, {OUTSIDE:{host: localhost, port: 9092}}}, rpc_address: {host: 0.0.0.0, port: 33145}, rack: {nullopt}, properties: {cores 1, mem_available 1, disk_available 58}}}}
As can be seen from the docker container logs that it is listening at localhost
address.
This is causing me a problem and I want it to listen at host.docker.internal
.
Based on redpanda documentation here
/
I need to have these
redpanda:
advertised_kafka_api:
- address: redpanda-0.redpanda.redpanda.svc.cluster.local.
port: 9093
name: internal
- address: redpanda-0.customredpandadomain.local
port: 31092
name: default
I also read to translate yaml to Environment config, I need to use upper case. So I am starting my container with below config but it does not seem to take effect
"REDPANDA_ADVERTISED_KAFKA_API_ADDRESS","host.docker.internal",
"REDPANDA_ADVERTISED_KAFKA_API_PORT","9092"
I have a redpanda kafka container running, where the logs show this
brokers: {{id: 0, kafka_advertised_listeners: {{PLAINTEXT:{host: 127.0.0.1, port: 29092}}, {OUTSIDE:{host: localhost, port: 9092}}}, rpc_address: {host: 0.0.0.0, port: 33145}, rack: {nullopt}, properties: {cores 1, mem_available 1, disk_available 58}}}}
As can be seen from the docker container logs that it is listening at localhost
address.
This is causing me a problem and I want it to listen at host.docker.internal
.
Based on redpanda documentation here
/
I need to have these
redpanda:
advertised_kafka_api:
- address: redpanda-0.redpanda.redpanda.svc.cluster.local.
port: 9093
name: internal
- address: redpanda-0.customredpandadomain.local
port: 31092
name: default
I also read to translate yaml to Environment config, I need to use upper case. So I am starting my container with below config but it does not seem to take effect
"REDPANDA_ADVERTISED_KAFKA_API_ADDRESS","host.docker.internal",
"REDPANDA_ADVERTISED_KAFKA_API_PORT","9092"
本文标签: dockerNot able to change advertised listener for RedPanda kafkaStack Overflow
版权声明:本文标题:docker - Not able to change advertised listener for RedPanda kafka - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745664933a2162120.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论