How to produce and consume message to/from kafka using .net client How to produce and consume message to/from kafka using .net client kubernetes kubernetes

How to produce and consume message to/from kafka using .net client


To expose Kafka outside of minikube (Kubernetes) is a very complicated issue, because you will always get unrouted IP addresses (internal adresses which can be changed any time) as an answer from Kafka broker. So the best way is to use .net client inside the Kubernetes cluster near Kafka. Then you will have Kafka and .net client, for example Confluent's in the same network. I can advise you to read this article, it is related to GKE, but anyway you can use it as an example, and run the same configuration in minikube.