Updated November 2026Status: In progress
Building a GitOps Deployment Platform
A code push reaches Kubernetes only through Git, and Git is also how you undo it.
Where it stands
Goal
An end-to-end GitOps template that runs on a laptop at no cost: CI builds and tags an image and writes the tag to a config repo; Argo CD is the only thing that deploys; dev updates automatically, prod by reviewed pull request and manual sync.
Built with
- Cluster
- Kubernetes (kind)
- Argo CD
- Config
- Kustomize
- CI
- GitHub Actions
- GHCR
- App
- Python
- Flask
- pytest
- Docker
Progress
Design and key decisions (Done)
Architecture, 14 key decisions each with an alternative considered, and a six-phase build plan.
Workstation, repos and app (In progress)
Local kind cluster, plus a Flask app with tests and a Dockerfile.
CI pipeline (Up next)
Test, build an immutable sha-tagged image and write the tag to the config repo; CI never touches the cluster.
Argo CD and two environments (Up next)
Dev syncs automatically and self-heals; prod is promoted by pull request and a manual sync.
Drift, rollback and canary demo (Up next)
Self-heal, rollback by git revert and an optional canary, with README and recording.
Preview
Planned architecture
From the design doc: CI builds and tags an image and commits the tag to app-config; Argo CD, inside the cluster, pulls app-config and deploys dev automatically and prod after a reviewed pull request.
Approach
Two repositories separate who can change code from who can change what runs. The app repository's CI tests the code, builds an image tagged with its commit (never "latest") and writes that tag into the config repository; it never runs kubectl or holds cluster credentials. Argo CD, inside the cluster, pulls the config repository and is the only thing that deploys.
One set of Kustomize manifests drives two environments: dev syncs automatically and corrects drift, while prod changes only through a reviewed promotion pull request and a manual sync. The config repository's history becomes the deploy log, and rolling back is a git revert.
Open Questions
Should the config repo stay public, or add an Argo CD repo secret?
Is the canary in scope now, or a stretch goal after the recording?
