You need to make sure you've configured your listeners & advertised listeners correctly. This should help: https://rmoff.net/2018/08/02/kafka-listeners-explained/
-- Robin Moffatt | Senior Developer Advocate | ro...@confluent.io | @rmoff On Thu, 19 Mar 2020 at 01:49, Dan Hill <quietgol...@gmail.com> wrote: > Problem: I'm hitting an error: "no such host" for " > kafka-0.cluster.local:19092". > > Has anyone done this before? Any help would be appreciated. Thanks! - Dan > > My long-term goal is to get an AWS Lambda to send events to a Kafka running > in AWS EKS. > > I used the following instructions > < > https://github.com/helm/charts/tree/master/incubator/kafka#connecting-to-kafka-from-outside-kubernetes > > > (linked to the "outside kubernetes" part) to setup up Kafka using the helm > config. The only modifications are for the "outside kubernetes" part. > < > https://github.com/helm/charts/tree/master/incubator/kafka#connecting-to-kafka-from-outside-kubernetes > > > > I've tried a few variations. None of them worked. I still can't connect > to it. > - on an Lambda in the same subnet, on an EC2 machine in the same subnet, on > a > - with a couple different "outside kubernetes" options. > > E.g. if I setup external using LoadBalancer, I'll get something an External > IP like (fake) afdsafsafsafdas-13412341.us-east-1.elb.amazon.com:19092. > > If I try to run a basic command against this domain, it fails saying there > is no such host for kafka-0.cluster.local:19092. >