You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Follow these steps to access Kafka from outside the Kuberenetes

1) Update the Kafka service YAML to add service type as LoadBalancer

 

2) Get the external  IP address by running the below kubectl command. Kubernetes Dashboard also shows the external IP address.

       kubectl get services/message-router-kafka  -o jsonpath='{.status.loadBalancer.ingress[0].ip}'

         

3) Update the KAFKA_ADVERTISED_LISTENERS environment variable  in Kafka Deployment YAML with the external IP from step 2 and redeploy the DMaaP


Now Kafka can be accessed outside Kubernetes cluster  at <external IP>:9092

  • No labels