Deploying Voting app on Kubernetes
- A front-end web app in Python which lets you vote between two options.
- A Redis which collects new votes.
- A .NET worker which consumes votes and stores them in.
- A Postgres database backed by a Docker volume.
- A Node.js web app which shows the results of the voting in real time.
kubectl apply -f app-namespace.yml
kubectl apply -f postgres-secret.yml
- NodePort service which uses port
30004
kubectl apply -f votingapp-deploy.yml votingapp-service.yml
- Container image
kodekloud/examplevotingapp_vote:v1
- ClusterIP service which uses port
6379
kubectl apply -f redis-deploy.yml redis-service.yml
- Container image
redis
- ClusterIP service which uses port
5432
kubectl apply -f postgres-deploy.yml postgres-service.yml
- Container image
postgres
kubectl apply -f workerapp-deploy.yml
- Container image
kodekloud/examplevotingapp_worker:v1
- NodePort service which uses port
30005
kubectl apply -f resultapp-deploy.yml resultapp-service.yml
- Container image
kodekloud/examplevotingapp_result:v1
Run kubectl get pods,svc -n votingapp
to see all created pods and services in votingapp namespace