How beast-lucifer-666/zero-downtime-deployment-engine works
This repository is a zero-downtime deployment demo: an operator rolls out a new version, checks readiness and (for canaries) error rates, then shifts traffic or rolls back. The application exposes health, readiness, and metrics endpoints; Kubernetes resources provide rollout and traffic-routing primitives, with Prometheus/Grafana monitoring. The control panel separately reads and patches the active service. Unsampled deployment scripts and Kubernetes resources are included only where README capabilities establish their role; internal wiring beyond that is not inferred.
Main entry points: deploy-blue-green.sh Blue/green deploy · deploy-canary.sh Canary deploy · monitoring.yaml Monitoring stack · canary-gate.sh Error-rate gate
Components 18
Application
- Demo service
app/src/server.js - Health checks
scripts/health-check.sh
Release strategies
- Blue/green deploy
scripts/deploy-blue-green.sh - Canary deploy
scripts/deploy-canary.sh - Error-rate gate
scripts/canary-gate.sh - Rollback
scripts/rollback.sh - Promotion
scripts/promote.sh - Inactive rollout
scripts/deploy-inactive.sh
Traffic control
- Control panel
control-panel/server.js - Blue/green rollout
k8s/blue-green/rollout.yaml - Canary rollout
k8s/canary/rollout.yaml - Canary ingress
k8s/canary/ingress.yaml - Preview service
k8s/services/preview-service.yaml - Active service
k8s/services/active-service.yaml
Monitoring
- Monitoring stack
k8s/monitoring.yaml - Prometheus scrape
- Grafana dashboard
Other components
- Operator
Connections 18
- Operator → Blue/green deploy: starts rollout
README.md - Operator → Canary deploy: starts rollout
README.md - Operator → Control panel: switches versions
control-panel/server.js - Control panel → Active service: patches selector
control-panel/server.js - Blue/green deploy → Blue/green rollout: deploys color
README.md - Blue/green deploy → Preview service: exposes candidate
README.md - Blue/green deploy → Active service: switches traffic
README.md - Canary deploy → Canary rollout: progresses stages
README.md - Canary deploy → Canary ingress: updates weights
README.md - Canary deploy → Error-rate gate: runs gate
README.md - Error-rate gate → Rollback: triggers on failure
README.md - Operator → Promotion: promotes release
README.md - Operator → Rollback: restores version
README.md - Operator → Inactive rollout: deploys inactive
- Health checks → Demo service: checks readiness
- Monitoring stack → Prometheus scrape: deploys scraper
README.md - Monitoring stack → Grafana dashboard: deploys dashboard
README.md - Prometheus scrape → Demo service: scrapes metrics
README.md