diff --git a/README.md b/README.md index 8992dca..b452b1c 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,11 @@ # Portal -Interview portal for my Kubernetes home lab. A single-page Next.js site with three sections: +Interview portal for my Kubernetes home lab. A single-page Next.js site with two sections: -1. **Introduction** - short bio (placeholder `TBD` until the ~200 words are written). -2. **The Lab** - animated diagrams of the request path (GoDaddy DNS -> host Nginx :80 -> ingress-nginx :8081 -> Service -> Pod) and the CI/CD pipeline (git push -> Gitea Actions -> docker build -> Harbor -> Helm -> Kubernetes), plus a link list for `it-cost-prod`, `harbor` and `gitea`. -3. **Travel** - link to the travel map. +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. + - CI/CD: git push -> Gitea Actions -> docker build -> Harbor -> Helm -> Kubernetes. +2. **Travel** - link to the travel map. Everything is rendered by server components (no client JS), styled with Tailwind CSS 4, and shipped as a Next.js `standalone` build. @@ -15,7 +16,6 @@ All copy lives in one file: [`content/site.ts`](content/site.ts). | What | Where | | --- | --- | | Name shown in the header | `profile.name` | -| Introduction paragraphs | `introduction` (array of strings, one per paragraph) | | Lab links, user and password | `labServices` | | Travel map link, user and password | `travel` | diff --git a/app/layout.tsx b/app/layout.tsx index 5d810d1..b92b3d8 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -5,7 +5,7 @@ import "./globals.css"; export const metadata: Metadata = { title: `${profile.name} · Portal`, description: - "Personal portal: an introduction, the architecture and CI/CD workflow of my Kubernetes home lab, and my travel album.", + "Personal portal: the architecture and CI/CD workflow of my Kubernetes home lab, and my travel album.", }; export default function RootLayout({ children }: LayoutProps<"/">) { diff --git a/app/page.tsx b/app/page.tsx index fbda20b..3c851a9 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,11 +1,10 @@ import { Header } from "@/components/Header"; -import { Introduction } from "@/components/Introduction"; import { Section } from "@/components/Section"; import { Travel } from "@/components/Travel"; import { CicdFlow } from "@/components/lab/CicdFlow"; import { RequestFlow } from "@/components/lab/RequestFlow"; import { ServiceLinks } from "@/components/lab/ServiceLinks"; -import { StackBadges } from "@/components/lab/StackBadges"; +import { profile } from "@/content/site"; function SubHeading({ title, children }: { title: string; children?: React.ReactNode }) { return ( @@ -22,20 +21,19 @@ export default function Home() {
- +

{profile.name}: Kubernetes lab portal

- - -
+
- DNS is managed at GoDaddy. From there a request passes through the host Nginx and - the cluster ingress before landing on 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 not behind the ingress; + they are served directly on their own ports.
diff --git a/components/Header.tsx b/components/Header.tsx index 287de6a..8d9e043 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -1,7 +1,6 @@ import { profile } from "@/content/site"; const links = [ - { href: "#introduction", label: "Introduction" }, { href: "#lab", label: "The Lab" }, { href: "#travel", label: "Travel" }, ]; diff --git a/components/Introduction.tsx b/components/Introduction.tsx deleted file mode 100644 index b368ce1..0000000 --- a/components/Introduction.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import { introduction, profile } from "@/content/site"; - -export function Introduction() { - return ( -
-
-

- Introduction -

-

- Hi, I'm{" "} - - {profile.name} - -

-
- {introduction.map((p, i) => ( -

{p}

- ))} -
-
-
- ); -} diff --git a/components/Travel.tsx b/components/Travel.tsx index 47f67c6..a482ad4 100644 --- a/components/Travel.tsx +++ b/components/Travel.tsx @@ -1,52 +1,8 @@ -import { ExternalLink, MapPin, Plane } from "lucide-react"; +import { ExternalLink, MapPin } from "lucide-react"; import { CredentialRows } from "@/components/CredentialRows"; import { Section } from "@/components/Section"; import { travel } from "@/content/site"; -/** Decorative route map: dotted "world" backdrop, a dashed flight path and pins. */ -function RouteArt() { - const pins = [ - { x: 70, y: 150 }, - { x: 170, y: 70 }, - { x: 290, y: 120 }, - { x: 400, y: 50 }, - ]; - return ( - - - - - - - - - - - - - {pins.map((p, i) => ( - - - - - - ))} - - ); -} - export function Travel() { return (
-
-
-
- - - -
- -
-
-

-

-

- Sign in with the credentials below to browse the album. -

-
- - {travel.host} - - -
+
+
+

+

+

+ Sign in with the credentials below to browse the album. +

+ + {travel.host} + +
); diff --git a/components/lab/CicdFlow.tsx b/components/lab/CicdFlow.tsx index b24b4c4..57f460c 100644 --- a/components/lab/CicdFlow.tsx +++ b/components/lab/CicdFlow.tsx @@ -1,37 +1,9 @@ import { siDocker, siGit, siGitea, siHarbor, siHelm, siKubernetes } from "simple-icons"; -import { GitBranch, ShieldCheck, Tag, Undo2 } from "lucide-react"; +import { GitBranch } from "lucide-react"; import { BrandIcon } from "@/components/BrandIcon"; import { Connector, FlowNode } from "@/components/flow"; -const lanes = [ - { - env: "DEV", - badge: "border-amber-300/40 bg-amber-300/10 text-amber-200", - ring: "border-amber-300/25", - icon:
-
- {lanes.map((lane) => ( -
-
- - {lane.env} - - - {lane.icon} - {lane.trigger} - -
-
- {lane.rows.map(([k, v]) => ( -
-
{k}
-
{v}
-
- ))} -
-
- ))} -
-
    {guarantees.map((g) => (
  • , + accent: `#${siHarbor.hex}`, + }, + { + name: "gitea", + detail: "gitea.tomchien.com:3001", + icon: , + accent: `#${siGitea.hex}`, + }, +]; + +/** Applications running in the cluster, reached through ingress-nginx. */ const targets: Target[] = [ { name: "it-cost-dev", @@ -32,18 +49,6 @@ const targets: Target[] = [ icon: