How londheshubham153/k8s-kind-voting-app works
This repository combines a two-option voting application with a guide to deploying it on a Kind Kubernetes cluster. The main runtime flow accepts votes, queues them in Redis, persists them through a .NET worker, and broadcasts PostgreSQL aggregates to the live results page. The README also describes AWS EC2, Kind, and Argo CD setup; those deployment capabilities are represented separately from application runtime. Deployment wiring is based on README claims because deployment manifests were not excerpted.
Main entry points: server.js Results Server · app.py Voting Web App · commands.md Kind Cluster · Program.cs Vote Worker
Components 13
Vote Capture
- Voting Web App
vote/app.py - Voting Page
vote/templates/index.html
Vote Processing
- Redis Queue
- Vote Worker
worker/Program.cs - PostgreSQL
Live Results
- Results Server
result/server.js - Socket.IO Client
result/views/socket.io.js - Results UI
result/views/app.js
Cluster Deployment
- Kind Cluster
kind-cluster/commands.md - Kubernetes Specs
k8s-specifications
Other components
- Voter
- AWS EC2
- Argo CD
Connections 12
- Voter → Voting Web App: submits vote
README.md - Voting Web App → Voting Page: renders
vote/app.py - Voting Web App → Redis Queue: queues vote
vote/app.py - Vote Worker → Redis Queue: pops votes
worker/Program.cs - Vote Worker → PostgreSQL: stores votes
worker/Program.cs - Results Server → PostgreSQL: queries totals
result/server.js - Results Server → Socket.IO Client: serves client
result/server.js - Results Server → Results UI: broadcasts scores
result/server.js - Results UI → Socket.IO Client: receives events
result/views/app.js - AWS EC2 → Kind Cluster: hosts cluster
README.md - Kind Cluster → Kubernetes Specs: deploys applications
- Argo CD → Kind Cluster: manages cluster
README.md