From the course: Deploying and Running Apache Kafka on Kubernetes
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Deploying ZooKeeper
From the course: Deploying and Running Apache Kafka on Kubernetes
Deploying ZooKeeper
- [Instructor] In this video, we will deploy ZooKeeper onto Kubernetes. ZooKeeper is required by Kafka to store metadata, such as the current controller and topic configuration. Make sure you have Docker and Kubernetes running. Also stop or delete any existing Zookeeper or Kafka stateful set. Make sure you have the following services created; a headless service, three node ports, and a bootstrap service. The files for this services can be found in the exercise notes and you can apply them using kubectl dash f and then the name of the file. Now let's take a look at the Zookeeper stateful set YAML. We will only run one instance of Zookeeper so the replicators is set to one. In a production system you will likely need to run multiple instances, but that is outside the scope of this course. The stateful set is similar to the Kafka stateful set. The pods will be labeled with app Zookeeper and we're you using the docker image…