Microservice application deployed with Kubernetes. Uses pods, replicasets, and container orchestration to demonstrate a production-like setup with scalability and reliability.
This project runs a voting app composed of:
- Voting App: Frontend for voting
- Result App: Displays results
- Worker: Processes votes
- Redis: In-memory store
- PostgreSQL: Database for results
Services communicate internally via Kubernetes services.
Uses KodeKloud's pre-built images with v1 tag (important!):
kodekloud/examplevotingapp_vote:v1kodekloud/examplevotingapp_result:v1kodekloud/examplevotingapp_worker:v1- Redis & Postgres use official images
-
Clone repo:
git clone <repo-url> && cd kube-microservice-app -
Deploy with kubectl:
kubectl apply -f . -
Check pods & services:
kubectl get pods
kubectl get svc -
Access apps via browser:
- Voting app:
http://localhost:30080 - Result app:
http://localhost:30081
- Voting app:
- Use the
v1tag on images to avoid pull errors. - Redis & Postgres services are internal (
ClusterIP). - Use
kubectl logs <pod>for troubleshooting.
Feel free to contribute or raise issues!