SSL_do_handshake error on nginx ingress #8121
-
Deployed strimzi kafka cluster on EKS running nginx ingress controller.
any idea about the issue and fix? Here is my config.
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 14 replies
-
How exactly do you |
Beta Was this translation helpful? Give feedback.
-
Here is the test result with kafka-console-producer on Mac
|
Beta Was this translation helpful? Give feedback.
-
can we disable authentication when we use ingress? |
Beta Was this translation helpful? Give feedback.
-
I did and here is the latest configmap Do I have to create custom SSL cert on kafka side? I am using default ones.
tried the following commands all fails. maybe I do something wrong
I also see the folllowing logs in kafka pods
10.0.0.8 is IP address of nginx ingress controller pod. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hi @scholzj still kafka connection over broker ingress hostname does not work. $ keytool -import -trustcacerts -alias root -file ca.crt $ kafka-console-producer --broker-list kafka-bootstrap.mydomain.com:443 --producer-property security.protocol=SSL --producer-property ssl.truststore.password=password --producer-property ssl.truststore.location=./truststore.jks --topic iy2 I would like to clarify something. you said that kafka is not HTTP protocol. But nginx ingress only works on HTTPS ports. I got the following snippet from nginx ingress controller's nginx.conf
As you see nginx terminates HTTPS traffic and starts a SSL proxy to open a new connection to backend in HTTPS Also from https://kubernetes.github.io/ingress-nginx/user-guide/tls/#ssl-passthrough.
it means
Do you think that will works fine? in this case nginx-ingress does not forward TLS request as it is. It terminates (so it send it's AWS certificate to the client instead of Kafka TLS) I always get
|
Beta Was this translation helpful? Give feedback.
-
@scholzj finally it starting working. After working on 4 days...
previously I had
I removed it and re-deployed nginx ingress
|
Beta Was this translation helpful? Give feedback.
-
As I promise! https://ismailyenigul.medium.com/ingress-enabled-strimzi-kafka-deployment-on-aws-eks-40f451eecd3c |
Beta Was this translation helpful? Give feedback.
@scholzj finally it starting working. After working on 4 days...