Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nodeport does not update advertised listeners #191

Open
gojanpaolo opened this issue Nov 16, 2022 · 1 comment
Open

nodeport does not update advertised listeners #191

gojanpaolo opened this issue Nov 16, 2022 · 1 comment

Comments

@gojanpaolo
Copy link

Crossposting from confluentinc/confluent-kubernetes-examples#190
Apologies if this is not the correct repo for the issue.


We have updated to nodeport like so

kind: Kafka
spec:
...
  listeners:
    external:
      externalAccess:
        type: nodePort
        nodePort:
          host: 34.171.202.240
          nodePortOffset: 30000

But it looks like the advertised listeners are not updated as expected

$ kubectl -n confluent logs kafka-0 | grep advert
Defaulted container "kafka" out of: kafka, config-init-container (init)
        advertised.listeners = EXTERNAL://kafka-0.kafka.confluent.svc.cluster.local:9092,INTERNAL://kafka-0.kafka.confluent.svc.cluster.local:9071,REPLICATION://kafka-0.kafka.confluent.svc.cluster.local:9072
        advertised.listeners = EXTERNAL://kafka-0.kafka.confluent.svc.cluster.local:9092,INTERNAL://kafka-0.kafka.confluent.svc.cluster.local:9071,REPLICATION://kafka-0.kafka.confluent.svc.cluster.local:9072
        advertised.listeners = []
$ ./kcat.exe -b 34.171.202.240:30000 -t my-topic -C -v
%3|1668553116.364|FAIL|rdkafka#consumer-1| [thrd:kafka-0.kafka.confluent.svc.cluster.local:9092/0]: kafka-0.kafka.confluent.svc.cluster.local:9092/0: Failed to resolve 'kafka-0.kafka.confluent.svc.cluster.local:9092': No such host is known.  (after 19ms in state CONNECT)
% Fatal error at consume_cb:627:
% ERROR: Topic my-topic [0] error: Failed to query logical offset END: Local: Host resolution failure       
@Michael2008S
Copy link

Meet the same issue. How to fix it?

~  tail -f /var/log/syslog | kafkacat -b  192.168.18.36:9092 -t syslog_topic_20230116 -z snappy
% Auto-selecting Producer mode (use -P or -C to override)
% ERROR: Local: Host resolution failure: kafka-0.kafka.confluent.svc.cluster.local:9092/0: Failed to resolve 'kafka-0.kafka.confluent.svc.cluster.local:9092': Temporary failure in name resolution (after 1ms in state CONNECT)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants