Deployments provide declarative updates, automatic rollbacks, and easy scaling.
Learn more: Kubernetes Deployments.
Learn more: Kubernetes Deployments.
Voting App Architecture

1. Define Deployment Manifests
Below is a summary of all Deployment YAML files:| Manifest File | Component | Image |
|---|---|---|
| voting-app-deploy.yaml | Voting Frontend | kodekloud/examplevotingapp_vote:v1 |
| redis-deploy.yaml | Redis Cache | redis |
| postgres-deploy.yaml | PostgreSQL DB | postgres |
| worker-app-deploy.yaml | Background Work | kodekloud/examplevotingapp_worker:v1 |
| result-app-deploy.yaml | Results Frontend | kodekloud/examplevotingapp_result:v1 |
voting-app-deploy.yaml
redis-deploy.yaml
postgres-deploy.yaml
worker-app-deploy.yaml
result-app-deploy.yaml
2. Apply Deployments and Services
First, ensure no leftover Pods or Services:3. Verify Deployments and Services
Check Deployments and Pods:| SERVICE | TYPE | CLUSTER-IP | PORT(S) |
|---|---|---|---|
| voting-service | NodePort | 10.100.x.y | 80:30004/TCP |
| result-service | NodePort | 10.105.x.z | 80:30005/TCP |
| redis | ClusterIP | 10.104.x.y | 6379/TCP |
| db | ClusterIP | 10.107.x.z | 5432/TCP |