This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
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";
|
||||
|
||||
function SubHeading({ title, children }: { title: string; children?: React.ReactNode }) {
|
||||
return (
|
||||
<div className="mb-8">
|
||||
<h3 className="text-xl font-semibold text-white">{title}</h3>
|
||||
{children && <p className="mt-1 max-w-3xl text-sm leading-6 text-slate-400">{children}</p>}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<>
|
||||
<span id="top" />
|
||||
<Header />
|
||||
<main className="flex-1">
|
||||
<Introduction />
|
||||
|
||||
<Section
|
||||
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 hostname to the right service. Everything below is hosted on that one machine, including this site."
|
||||
>
|
||||
<StackBadges />
|
||||
|
||||
<div className="mt-14">
|
||||
<SubHeading title="How a request reaches a pod">
|
||||
DNS is managed at GoDaddy. From there a request passes through the host Nginx and
|
||||
the cluster ingress before landing on a pod.
|
||||
</SubHeading>
|
||||
<RequestFlow />
|
||||
</div>
|
||||
|
||||
<div className="mt-20">
|
||||
<SubHeading title="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.
|
||||
</SubHeading>
|
||||
<CicdFlow />
|
||||
</div>
|
||||
|
||||
<div className="mt-20">
|
||||
<SubHeading title="Lab services">
|
||||
Live endpoints you can open yourself.
|
||||
</SubHeading>
|
||||
<ServiceLinks />
|
||||
</div>
|
||||
</Section>
|
||||
|
||||
<Travel />
|
||||
</main>
|
||||
<footer className="border-t border-white/10 py-8 text-center text-sm text-slate-500">
|
||||
Built with Next.js and deployed by the pipeline described above.
|
||||
</footer>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user