From 5fe2ecd75737a10dd6452286e5cf17982eeb52af Mon Sep 17 00:00:00 2001 From: "Tom Chien (IQ-AS)" Date: Wed, 18 Nov 2026 18:41:41 +0800 Subject: [PATCH] upload --- README.md | 2 +- app/page.tsx | 7 +- components/Section.tsx | 8 ++- components/Travel.tsx | 1 + components/lab/CicdFlow.tsx | 127 ++++++++++++++------------------- components/lab/RequestFlow.tsx | 58 ++++++++------- 6 files changed, 100 insertions(+), 103 deletions(-) diff --git a/README.md b/README.md index b452b1c..7921c5f 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Interview portal for my Kubernetes home lab. A single-page Next.js site with two sections: 1. **The Lab** - diagrams of the request path and the CI/CD pipeline, plus a link list for `it-cost-prod`, `harbor` and `gitea`. - - Request path: GoDaddy DNS -> host Nginx :80 -> ingress-nginx :8081 -> Service -> Pod for the applications. `harbor` (`:8080`) and `gitea` (`:3001`) are not behind ingress-nginx; they are reached directly on their own ports. + - Request path: GoDaddy DNS -> host Nginx :80 -> ingress-nginx :8081 -> Service -> Pod for the applications. `harbor` (`:8080`) and `gitea` (`:3001`) are pods in the same cluster, but each is exposed by its own LoadBalancer Service on a host port, so they are not behind ingress-nginx. - CI/CD: git push -> Gitea Actions -> docker build -> Harbor -> Helm -> Kubernetes. 2. **Travel** - link to the travel map. diff --git a/app/page.tsx b/app/page.tsx index 3c851a9..a64f95e 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -27,13 +27,14 @@ export default function Home() { id="lab" eyebrow="The Lab" title="A Kubernetes lab on a Mac mini" - lead="Kubernetes comes from Docker Desktop on my Mac mini. A host-level Nginx accepts traffic on port 80 and hands it to the cluster's ingress controller, which routes each application hostname to the right service. Harbor and Gitea sit outside the cluster and are reached directly on their own ports. Everything below is hosted on that one machine, including this site." + lead="Kubernetes comes from Docker Desktop on my Mac mini. A host-level Nginx accepts traffic on port 80 and hands it to the cluster's ingress controller, which routes each application hostname to the right service. Harbor and Gitea run in the same cluster, but each is exposed by its own LoadBalancer service on a host port, so they skip the ingress. Everything below is hosted on that one machine, including this site." >
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 not behind the ingress; - they are served directly on their own ports. + 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.
diff --git a/components/Section.tsx b/components/Section.tsx index e13391f..e11dbce 100644 --- a/components/Section.tsx +++ b/components/Section.tsx @@ -5,16 +5,22 @@ export function Section({ eyebrow, title, lead, + compactTop = false, children, }: { id: string; eyebrow: string; title: string; lead?: ReactNode; + /** Trim the top padding when the section follows another one, so the gap between them isn't doubled. */ + compactTop?: boolean; children: ReactNode; }) { return ( -
+

{eyebrow} diff --git a/components/Travel.tsx b/components/Travel.tsx index a482ad4..b0b113d 100644 --- a/components/Travel.tsx +++ b/components/Travel.tsx @@ -7,6 +7,7 @@ export function Travel() { return (