Unable to connect to kafka-cluster #10110
Unanswered
shiva-appani-hash
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Seeing below exception while connecting to brokers from client pod.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As suggested created cluster using listener authentication type as SCRAM-SHA-512 instead of PLAIN, client connections are not successful.
apiVersion: kafka.strimzi.io/v1beta2 kind: Kafka metadata: name: kafka spec: kafka: version: 3.7.0 replicas: 3 listeners: - name: plain port: 9092 type: internal tls: false authentication: type: scram-sha-512 - name: tls port: 9093 type: internal tls: true authentication: type: scram-sha-512 - name: external port: 9094 type: loadbalancer tls: true authentication: type: scram-sha-512 config: offsets.topic.replication.factor: 3 transaction.state.log.replication.factor: 3 transaction.state.log.min.isr: 1 log.message.format.version: "3.7" inter.broker.protocol.version: "3.7" storage: type: persistent-claim size: 50Gi zookeeper: replicas: 3 storage: type: persistent-claim size: 50Gi entityOperator: topicOperator: {} userOperator: {}
kafka-user manifest:
apiVersion: kafka.strimzi.io/v1beta2 kind: KafkaUser metadata: name: kafka-user labels: strimzi.io/cluster: kafka spec: authentication: type: scram-sha-512 authorization: type: simple acls: - resource: type: topic name: '*' patternType: literal operation: All - resource: type: group name: '*' patternType: literal operation: All
Below is our kafka-client config:
kafka-console-producer.sh
--broker-list kafka-kafka-brokers:9092
--topic test
--producer.config <(echo -e "security.protocol=SASL_SSL\nsasl.mechanism=SCRAM-SHA-512\nsasl.username=kafka-user\nsasl.password=REDACTED"
Ref: #10108
Beta Was this translation helpful? Give feedback.
All reactions