A fully local GitOps environment β no cloud, no GitHub account, no external services required. One command boots a complete cluster with ArgoCD, a local git server, and a local Docker registry. Deployments are triggered by a single make deploy.
| App | ArgoCD | Gitea |
|---|---|---|
![]() |
![]() |
![]() |
| http://localhost:8888 | https://localhost:8080 β admin / argocd-local |
http://localhost:3000 β gitops / gitops |
| Component | Purpose |
|---|---|
| kind | Local Kubernetes cluster |
| ArgoCD | Watches the git repo and syncs changes automatically |
| Gitea | Git server running inside the cluster |
| Registry | Local Docker registry on localhost:5001 |
make deploy
ββ builds Docker image β localhost:5001
ββ patches deploy-id annotation in apps/deployment.yaml
ββ git commit + push β Gitea (in-cluster)
ββ triggers ArgoCD hard refresh
ArgoCD detects the new commit
ββ applies apps/deployment.yaml
ββ rolling update with readiness probe (zero downtime)
http://localhost:8888 β updated within seconds
git clone --filter=blob:none --sparse https://github.com/messeb/docker-playground.git \
&& cd docker-playground \
&& git sparse-checkout set local-kubernetes-setup \
&& cd local-kubernetes-setup/- Docker Desktop or Podman β must be running, 4 GB memory recommended
- Homebrew β
kindandkubectlare installed automatically
Docker is used by default if its daemon is running. Podman is used automatically when Docker is not available. You can also force a specific engine:
# Force podman for the full lifecycle
export CONTAINER_ENGINE=podman
make start
make deploy
make teardownOr per-command:
CONTAINER_ENGINE=podman make startStart everything
make startStarting local registry on port 5001...
Creating kind cluster 'local'...
Installing ArgoCD v3.0.0...
Waiting for ArgoCD pods to be ready (this takes ~1-2 min)...
Deploying Gitea...
Waiting for Gitea to be accessible...
App pushed to Gitea.
Applying ArgoCD Application...
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
Cluster ready! β
β Running initial deploy... β
β£ββββββββββββββββββββββββββββββββββββββββββββββββββββββ«
β π App: http://localhost:8888 β
β π ArgoCD: https://localhost:8080 β
β User: admin / <password> β
β π Gitea: http://localhost:3000 β
β User: gitops / Pass: gitops β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π Starting release...
π¦ Build: a1b2c3d4
π Date: 2026-03-29 17:00:00
β
Docker image built
β
Image pushed β localhost:5001/myapp:latest
β
deployment.yaml patched
β
Committed
β
Pushed to Gitea
β
ArgoCD sync triggered
β¨ Release a1b2c3d4 live in seconds
π http://localhost:8888
Deploy a new version
make deployπ Starting release...
π¦ Build: 7e6ca446
π Date: 2026-03-29 17:27:35
β
Docker image built
β
Image pushed β localhost:5001/myapp:latest
β
deployment.yaml patched
β
Committed
β
Pushed to Gitea
β
ArgoCD sync triggered
β¨ Release 7e6ca446 live in seconds
π http://localhost:8888
Check status
make statusβββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Status β
β£ββββββββββββββββββββββββββββββββββββββββββββββββββββββ«
β π ArgoCD sync: Synced β
β π ArgoCD health: Healthy β
β π¦ Deploy ID: 7e6ca446 β
β π Pods ready: 1 / 1 β
β£ββββββββββββββββββββββββββββββββββββββββββββββββββββββ«
β π App: http://localhost:8888 β
β π ArgoCD UI: https://localhost:8080 β
β User: admin / <password> β
β π Gitea: http://localhost:3000 β
β User: gitops / gitops β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Tear everything down
make teardownβββ app/ # App repo β initialized and pushed to Gitea on start
β βββ apps/
β β βββ deployment.yaml # Rolling update, readiness probe, revision cleanup
β β βββ service.yaml # NodePort β host port 8888
β βββ Dockerfile # nginx + build-arg substitution
β βββ nginx.conf # Cache-control headers, etag disabled
β βββ index.html.template # Page template with {buildnumber} / {builddate}
β βββ Makefile # build / deploy
β
βββ gitea/
β βββ deployment.yaml # Gitea git server pod (rootless)
β βββ service.yaml # NodePort β host port 3000
βββ argocd/
β βββ application.yaml # ArgoCD Application β watches Gitea in-cluster
βββ cluster/
β βββ kind-config.yaml # kind cluster config, NodePort mappings, registry mirror
βββ start.sh # Bootstrap script
βββ status.sh # Cluster and app status
βββ teardown.sh # Full cleanup script
βββ Makefile # start / deploy / status / teardown


