最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

docker - Not able to change advertised listener for RedPanda kafka - Stack Overflow

programmeradmin2浏览0评论

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"
发布评论

评论列表(0)

  1. 暂无评论