confluentinc / confluent-kafka-python

Confluent's Kafka Python Client
http://docs.confluent.io/current/clients/confluent-kafka-python
Other
84 stars 892 forks source link

Disconnected while requesting ApiVersion - Kubernetes Only #1675

Open MacherelR opened 10 months ago

MacherelR commented 10 months ago

Description

I'm facing a problem since I deployed redpanda inside a kubernetes cluster (following those instructions: https://docs.redpanda.com/current/deploy/deployment-option/self-hosted/kubernetes/kubernetes-deploy/?tab=tabs-1-helm#tabs-1-helm) :

redpanda.lysredge.svc.cluster.local:9093/bootstrap: Disconnected while requesting ApiVersion: might be caused by incorrect security.protocol configuration (connecting to a SSL listener?) or broker version is < 0.10 (see api.version.request) (after 13ms in state APIVERSION_QUERY, 3 identical error(s) suppressed)

I was previously testing with the redpanda docker compose version locally on my mac and never encountered this problem... It only appears when deploying redpanda in kubernetes (in my case a k3s cluster).

How to reproduce

Checklist

Please provide the following information:

jozeecp commented 7 months ago

Any chance you've found an answer to this issue? I'm seeing the same thing.

MacherelR commented 7 months ago

Hi @jozeecp, Not sure anymore how I worked around this but if I remember well, it was an issue with TLS being enabled in the default values of redpanda deployment. You got in redpanda values a key called tls enable which should be set to false. In my case I didn't need TLS as there were no external access to redpanda so I was able to disable it. Please let me know if that fixes your problem, and if not I might try to help you debugging it !