-
To install:
- I used
brew install minikube
to install. - Also, I used
minikube config set driver docker
to set docker as my default driver
- I used
-
To deploy:
- I configured the service and deployment sections in the yaml file
- Used
minikube start -p CSE511-project2-phase2
to start the cluster - Used
kubectl apply -f ./kafka-setup.yaml
andkubectl apply -f ./zookeeper-setup.yaml
to deploy the pods.
-
I verified my deployment in two ways:
Sending data from local host to Kafka using the following command:
kubectl port-forward <kafka-pod-name> 29092
echo "hello Kafka" | kcat -P -b localhost:29092 -t test
kcat -C -b localhost:29092 -t test
Checking connectivity between zookeeper and kafka and listing the kafka broker id and topics.
kubectl exec -it <kafka-pod-name> -- /bin/bash
zookeeper-shell.sh zookeeper-service:2181
ls /brokers/ids
ls /brokers/topics