Kubernetes: Create an Ingress for Kafka

7/14/2020

I have Confluent Kafka 5.3.1 pods running with Zookeeper with SSL on AWS. How can I make the Ingress work? I want to give access to an external user, to my Kafka topic. This should work as a Layer-4 ingress as it is on port 9092~3.

I am trying to find some documentation online.

Thank you

-- CMPE
apache-kafka
kubernetes
kubernetes-ingress
nginx-ingress

1 Answer

7/14/2020

Ingress is only an L7 resource. So you can make use of a plain LoadBalancer Service. Since you are running on AWS, you can either use an ELB or an NLB. Make sure you use the right annotation on your Service, for example for an NLB:

    metadata:
      name: my-service
      annotations:
        service.beta.kubernetes.io/aws-load-balancer-type: "nlb"
-- Rico
Source: StackOverflow