Kubernetes StatefulSet with ZooKeeper
Kubernetes StatefulSet with ZooKeeper as an example
Background
We were having a hard time deploying Kafka to Kubernetes. It worked fine when we were doing development and integration. We started with Minikube for local development.
If you are not interested in the background and want to skip to the meat of the matter go ahead and skip ahead.
We created a MicroSerivce that uses Kafka in Spring Boot. We ran Kafka in minikube with Helm 2. By the way, Minikube is a mini Kubernetes that easily runs on macOS, Linux, and Windows. Minikube is great for local application development and supports a lot of Kubernetes. It is great for local testing and we also used it for integration testing.