Accessing Kafka via OpenShift Routes #6129
-
Hi. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Kafka does not support HTTP or HTTPS. Kafka supports only its own TCP based protocol. So when you use the external listener, that is what you have to use. If you want tpo use HTTP / HTTPS, you need to use additional compoenent to do the bridging - such as our Kafka Bridge. |
Beta Was this translation helpful? Give feedback.
-
@AvihuHenya in a standard HTTP request the hostname information used by HAProxy for routing is contained in the In that case, you can use Alternatively, you can use |
Beta Was this translation helpful? Give feedback.
@AvihuHenya in a standard HTTP request the hostname information used by HAProxy for routing is contained in the
Host
header. When connecting from outside of OpenShift using non-HTTP protocols (e.g. Kafka, AMQP, etc.), both Route'sedge
andreencrypt
TLS terminations do not work, because there is no such information.In that case, you can use
passthrough
TLS termination connecting to port 443, with the encrypted traffic sent straight to the pod (a similar configuration is also available for NGinx/Ingress). Requests are routed using the unencrypted hostname information contained in theSNI
(Server Name Indication) during the initial handshake.Alternatively, you can use
loadbalancer
(TLS ag…