Compare commits
5
Commits
5fe2ecd757
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
54bb605d9c | ||
|
|
ef3ab9255d | ||
|
|
a3d3884451 | ||
|
|
b084978ac4 | ||
|
|
2553f3806d |
+21
-9
@@ -6,11 +6,21 @@ import { RequestFlow } from "@/components/lab/RequestFlow";
|
|||||||
import { ServiceLinks } from "@/components/lab/ServiceLinks";
|
import { ServiceLinks } from "@/components/lab/ServiceLinks";
|
||||||
import { profile } from "@/content/site";
|
import { profile } from "@/content/site";
|
||||||
|
|
||||||
function SubHeading({ title, children }: { title: string; children?: React.ReactNode }) {
|
function SubHeading({
|
||||||
|
title,
|
||||||
|
children,
|
||||||
|
}: {
|
||||||
|
title: string;
|
||||||
|
children?: React.ReactNode;
|
||||||
|
}) {
|
||||||
return (
|
return (
|
||||||
<div className="mb-8">
|
<div className="mb-8">
|
||||||
<h3 className="text-xl font-semibold text-white">{title}</h3>
|
<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>}
|
{children && (
|
||||||
|
<p className="mt-1 max-w-3xl text-sm leading-6 text-slate-400">
|
||||||
|
{children}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -26,14 +36,15 @@ export default function Home() {
|
|||||||
<Section
|
<Section
|
||||||
id="lab"
|
id="lab"
|
||||||
eyebrow="The Lab"
|
eyebrow="The Lab"
|
||||||
title="A Kubernetes lab on a Mac mini"
|
title="A Self-Hosted CI/CD and 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 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."
|
lead="Kubernetes comes from Docker Desktop on my Mac mini in my home lab. 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."
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<SubHeading title="How a request reaches a pod">
|
<SubHeading title="How a request reaches a pod">
|
||||||
DNS is managed at GoDaddy. Application traffic passes through the host Nginx and the
|
DNS is managed at GoDaddy. Application traffic passes through the
|
||||||
cluster ingress before landing on a pod. Harbor and Gitea are pods in the cluster too,
|
host Nginx and the cluster ingress before landing on a pod. Harbor
|
||||||
but each is exposed by its own LoadBalancer service on :8080 and :3001, so they are not
|
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.
|
behind the ingress.
|
||||||
</SubHeading>
|
</SubHeading>
|
||||||
<RequestFlow />
|
<RequestFlow />
|
||||||
@@ -41,8 +52,9 @@ export default function Home() {
|
|||||||
|
|
||||||
<div className="mt-20">
|
<div className="mt-20">
|
||||||
<SubHeading title="From git push to running pod">
|
<SubHeading title="From git push to running pod">
|
||||||
Gitea Actions builds the image on the Docker Desktop daemon, stores it in Harbor and
|
Gitea Actions builds the image on the Docker Desktop daemon,
|
||||||
deploys it with Helm. A branch push goes to dev, a tag goes to prod.
|
stores it in Harbor and deploys it with Helm. A branch push goes
|
||||||
|
to dev, a tag goes to prod.
|
||||||
</SubHeading>
|
</SubHeading>
|
||||||
<CicdFlow />
|
<CicdFlow />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -21,7 +21,13 @@ export function Header() {
|
|||||||
<span className="flex size-7 items-center justify-center rounded-md bg-linear-to-br from-sky-400 to-indigo-500 text-xs font-bold text-slate-950">
|
<span className="flex size-7 items-center justify-center rounded-md bg-linear-to-br from-sky-400 to-indigo-500 text-xs font-bold text-slate-950">
|
||||||
{initials}
|
{initials}
|
||||||
</span>
|
</span>
|
||||||
|
<div className="hidden sm:flex sm:items-center sm:gap-2">
|
||||||
<span className="sr-only sm:not-sr-only">{profile.name}</span>
|
<span className="sr-only sm:not-sr-only">{profile.name}</span>
|
||||||
|
<span className="text-slate-600">•</span>
|
||||||
|
<span className="text-xs font-normal text-slate-400">
|
||||||
|
{profile.email}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<nav aria-label="Primary">
|
<nav aria-label="Primary">
|
||||||
<ul className="flex items-center gap-1 text-sm">
|
<ul className="flex items-center gap-1 text-sm">
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ const SCHEME = "http";
|
|||||||
|
|
||||||
export const profile = {
|
export const profile = {
|
||||||
name: "Tom Chien",
|
name: "Tom Chien",
|
||||||
|
email: "s871077@gmail.com",
|
||||||
};
|
};
|
||||||
|
|
||||||
export type Credentials = { user: string; password: string };
|
export type Credentials = { user: string; password: string };
|
||||||
|
|||||||
@@ -37,6 +37,10 @@ spec:
|
|||||||
value: {{ .Values.server.port | quote }}
|
value: {{ .Values.server.port | quote }}
|
||||||
- name: HOSTNAME
|
- name: HOSTNAME
|
||||||
value: "0.0.0.0"
|
value: "0.0.0.0"
|
||||||
|
- name: AUTH_TRUST_HOST
|
||||||
|
value: "true"
|
||||||
|
# - name: AUTH_URL
|
||||||
|
# value: https://tomchien.com
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Prod environment: deployed from a version tag on main.
|
# Prod environment: deployed from a version tag on main.
|
||||||
ingress:
|
ingress:
|
||||||
host: tomchien.com
|
host: portal-prod.tomchien.com
|
||||||
|
|
||||||
server:
|
server:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user