How rahulan-mahendra/cicd-nodejs-k8s-demo works
This repository is a local-first DevOps demo whose user-facing runtime is a small Express service, while its broader product workflow demonstrates packaging, image publishing, and Kubernetes deployment. Requests enter through the server and app router, then reach health, metadata, or intentional-crash endpoints. Separately, the documented CI/CD path builds and publishes an image, then uses a self-hosted runner to prepare Kind and apply Kubernetes resources. Workflow and manifest relationships below rely on README descriptions; sampled source confirms only application routing and startup.
Main entry points: cd.yml CD workflow · app.js Express router · ci.yml CI workflow · server.js HTTP server
Components 16
Application runtime
- HTTP server
src/server.js - Express router
src/app.js - Health endpoint
src/routes/health.js - Info endpoint
src/routes/info.js - Crash endpoint
src/routes/crash.js
Image delivery
- CI workflow
.github/workflows/ci.yml - Container image build
Dockerfile - GitHub Container Registry
Kubernetes deployment
- CD workflow
.github/workflows/cd.yml - App configuration
kubernetes/configmap.yaml - Pod deployment
kubernetes/deployment.yaml - Kubernetes service
kubernetes/service.yaml - Kind cluster
Runner setup
- Runner bootstrap
scripts/bootstrap-runner.sh - Self-hosted runner
Other components
- HTTP client
Connections 16
- HTTP client → HTTP server: sends requests
README.md - HTTP server → Express router: starts
src/server.js - Express router → Health endpoint: mounts route
src/app.js - Express router → Info endpoint: mounts route
src/app.js - Express router → Crash endpoint: mounts route
src/app.js - CI workflow → Container image build: builds image
README.md - Container image build → GitHub Container Registry: publishes image
README.md - CI workflow → GitHub Container Registry: pushes image
README.md - Self-hosted runner → CD workflow: runs deployment
README.md - CD workflow → Runner bootstrap: prepares cluster
README.md - Runner bootstrap → Kind cluster: ensures cluster
README.md - CD workflow → App configuration: applies manifests
README.md - CD workflow → Pod deployment: applies manifests
README.md - CD workflow → Kubernetes service: applies manifests
README.md - Pod deployment → Kind cluster: deploys pods
README.md - Kubernetes service → Kind cluster: exposes app
README.md