-
Start docker registry
docker run -d -p 5000:5000 --restart=always --name registry registry:2
-
Build docker images and push to registry
docker build --no-cache -t localhost:5000/consumer .\consumer
docker push localhost:5000/consumer
docker build --no-cache -t localhost:5000/producer .\producer
docker push localhost:5000/producer
-
Zookeeper k8s deployment
kubectl create -f zookeeper-cluster.yaml
-
Kafka k8s deployment
kubectl create -f kafka-cluster.yaml
-
Start k8s kafkaExample
kubectl create -f deployment.yaml