← WorkReference project · designed and built by our founder
Bare metal
to GitOps.
One application, six iterations. Each one starts from a real constraint, makes a decision, and accepts a trade-off. Every iteration lives on its own branch, so you can read the code and runbook as they were.
- 6 stages, from 3 servers to Kubernetes on AWS
- Live application and Grafana dashboards
- Code and runbooks for every stage
Constraint
A startup with a tight budget, three legacy servers, and six polyglot services plus PostgreSQL ready to ship.
Decision
Deploy on what exists: frontend, backend and database servers, each service as a systemd unit, UFW default-deny rules, rsyslog and logrotate.
Trade-off
Shipped fast with no new spend, but all five backend services share one server: a single point of failure that only scales vertically. Pain points documented to drive the roadmap.
Constraint
Manual systemd processes and no visibility into what was running or how it performed.
Decision
Docker Compose with tiered networks and an nginx proxy, plus Prometheus, Grafana, Loki, the OpenTelemetry Collector and cAdvisor, with Locust for load testing.
Trade-off
Reproducible deploys and real metrics, but still one Docker host, manual scaling, and the database left on its own server.
Constraint
One host, no autoscaling during traffic spikes, and new requirements for network segmentation and access control.
Decision
Multi-node Kubernetes with Helm charts for every service, HPA autoscaling, network policies, RBAC and restricted pod security; Redis, RabbitMQ and flagd; Jaeger tracing and public Grafana dashboards.
Trade-off
Rewrote the Orders service from Java to Go for resource efficiency, a real cost paid once. More moving parts to run, still tied to a single data centre.
Constraint
Manual deployments: slow, error-prone, no audit trail, and vulnerabilities found after release.
Decision
GitLab parent/child pipelines that only build what changed, shared multi-language templates, SAST, secrets, dependency, SonarQube, container and DAST scans, and ArgoCD app-of-apps promoting dev → qa → staging → prod.
Trade-off
Reused an existing ArgoCD rather than a dedicated instance. Mandatory quality gates add friction to every merge in exchange for catching issues before production.
Constraint
An open brief, “design our production cloud, you decide”, with self-hosted Postgres, Redis and RabbitMQ needing 24/7 care and no disaster recovery.
Decision
Terraform with an S3 backend and state locking: a three-tier VPC in eu-west-3, EKS, RDS Multi-AZ, ElastiCache and AmazonMQ, with Karpenter on spot instances.
Trade-off
Managed services remove operational load but deepen the AWS dependency. A single NAT gateway and t3/t4g instances keep non-production costs down at some cost to availability.
Constraint
Move production data and traffic to AWS with zero downtime, no data loss and instant rollback.
Decision
A hybrid setup: AWS DMS replicating to RDS, RabbitMQ federation to AmazonMQ, and Cloudflare weighted load balancing shifting traffic 10 → 25 → 50 → 75 → 100% behind health checks.
Trade-off
SSH tunnels and proxies were enough for the proof of concept; production would need a Site-to-Site VPN or Direct Connect.
The next stage moves the platform onto local cloud infrastructure in Nigeria, with data residency and recovery tested end to end. Results will be published here.
Running now.
The application runs with generated traffic, and its dashboards are public. Open them and look around.