How nxd010/k3s-infrastructure works
This repository is a small, locally hosted Kubernetes platform for deploying and observing a web app. Its documented workflow runs from building and publishing the app image, through GitOps or direct manifest deployment into a three-node K3s cluster, to serving traffic and scaling pods; Prometheus/Grafana and load testing are supporting capabilities. The README documents most infrastructure relationships; the only sampled runtime source is the HTTP app, so unsampled infrastructure components are represented from README statements rather than inspected implementation.
Main entry points: Dockerfile App Image · app.js HTTP App · deployment.yaml App Deployment
Components 17
Build and GitOps
- Git Manifests
- ArgoCD
- App Image
Dockerfile - Image Registry
Kubernetes Platform
- Control Plane
- Worker Nodes
- Pod Scheduler
- HPA
- Traefik Ingress
- App Deployment
k8s/deployment.yaml
Application Runtime
- HTTP App
app.js
Observability and Testing
- Prometheus
- Node Exporters
- Grafana
- ApacheBench
Other components
- Developer
- HTTP Client
Connections 15
- Developer → Git Manifests: pushes changes
README.md - Git Manifests → ArgoCD: triggers sync
README.md - ArgoCD → Control Plane: applies manifests
README.md - Developer → App Image: builds image
README.md - App Image → Image Registry: pushes image
README.md - App Deployment → Control Plane: applies workload
README.md - Control Plane → Pod Scheduler: schedules pods
README.md - Pod Scheduler → Worker Nodes: places pods
README.md - Image Registry → HTTP App: supplies image
README.md - Traefik Ingress → HTTP App: routes traffic
README.md - HTTP Client → Traefik Ingress: sends requests
- ApacheBench → Traefik Ingress: floods requests
README.md - HPA → Pod Scheduler: scales pods
README.md - Prometheus → Node Exporters: scrapes metrics
README.md - Grafana → Prometheus: queries metrics
README.md