Tom Chien: Kubernetes lab portal
The Lab
A Self-Hosted CI/CD and Kubernetes lab on a Mac mini
How a request reaches a pod
DNS is managed at GoDaddy. Application traffic passes through the host Nginx and the cluster ingress before landing on a pod. Harbor and Gitea are pods in the cluster too, but each is exposed by its own LoadBalancer service on :8080 and :3001, so they are not behind the ingress.
Visitor
Opens a hostname in the browser.
*.tomchien.com
GoDaddy DNS
Records for tomchien.com point every hostname at the lab.
host.tomchien.com → Mac mini
Nginx on the host
Edge reverse proxy: takes port 80 and forwards it to the cluster ingress.
listen :80 → 127.0.0.1:8081
ingress-nginx
LoadBalancer on 127.0.0.1. Routes each application hostname by its Host header.
127.0.0.1 : 8081
5Service → Pod
- it-cost-devdev environment
- it-cost-prodit-cost-prod.tomchien.com
- portaltomchien.com · this site
LoadBalancer Service → Pod · own ports, not behind ingress-nginx
- harborharbor.tomchien.com:8080
- giteagitea.tomchien.com:3001
From git push to running pod
Gitea Actions builds the image on the Docker Desktop daemon, stores it in Harbor and deploys it with Helm. A branch push goes to dev, a tag goes to prod.
git push
A branch or tag push starts the pipeline.
dev | v1.2.3
Gitea Actions
act_runner picks up the workflow from the repo.
cicd.yaml
docker build
Runner pod uses the Docker Desktop daemon socket.
multi-stage Dockerfile
Harbor
Image is pushed to the private registry.
registry :8080
helm upgrade
Chart is rolled out to the namespace.
--atomic
Kubernetes
Pods pull from Harbor with a pull secret.
Deployment · Service · Ingress
Lab services
Live endpoints you can open yourself.
IT Cost Dashboard
it-cost-prod
Production environment of the IT cost dashboard app.
it-cost-prod.tomchien.com- User
- TBD
- Password
- TBD
Harbor
harbor
Container registry that stores every image the pipeline builds.
harbor.tomchien.com:8080- User
- TBD
- Password
- TBD
Gitea
gitea
Git hosting and Actions CI/CD that drives every deployment.
gitea.tomchien.com:3001- User
- TBD
- Password
- TBD
Beyond the terminal
Get to know me through my travel album
Travel map
Sign in with the credentials below to browse the album.
- User
- TBD
- Password
- TBD