ingress in Layer 7 or Layer 4 #4370
Replies: 4 comments 1 reply
-
It is just a regular Kafka protocol. No encapsulation in HTTP. When using Strimzi with Nginx Ingress listeners, you have to enable TLS passthrough in the Ingress controller. And the Kafka listener is always using TLS. That way you trick the Ingress which by default expects to do Layer 7 HTTP handling to just think the Kafka TCP connection with TLs encryption is a HTTPS connection which should be passed through into the Kafka broker. But since the Ingress does not terminate the TLS encryption, it does not really know that it is not routing some actual HTTP based protocol but Kafka protocol. |
Beta Was this translation helpful? Give feedback.
-
I can think that the connection between the Kafka client and the broker is a tcp connection. Normally, the data is transmitted through the socket. |
Beta Was this translation helpful? Give feedback.
-
Why does nginx Ingress mistakenly think that encrypted tcp connection is similar to http connection? |
Beta Was this translation helpful? Give feedback.
-
I get ,thank you |
Beta Was this translation helpful? Give feedback.
-
Kafka client and broker use specific protocols to communicate. Whether these protocols are encapsulated by Layer 7 protocol or Layer 4 protocol, that is, whether the communication data between kafka client and broker is placed in http body or sent directly through socket?
Beta Was this translation helpful? Give feedback.
All reactions