Compare commits
| 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 { profile } from "@/content/site";
|
||||
|
||||
function SubHeading({ title, children }: { title: string; children?: React.ReactNode }) {
|
||||
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>}
|
||||
{children && (
|
||||
<p className="mt-1 max-w-3xl text-sm leading-6 text-slate-400">
|
||||
{children}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -26,14 +36,15 @@ export default function Home() {
|
||||
<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 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."
|
||||
title="A Self-Hosted CI/CD and Kubernetes lab on a Mac mini"
|
||||
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>
|
||||
<SubHeading title="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
|
||||
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.
|
||||
</SubHeading>
|
||||
<RequestFlow />
|
||||
@@ -41,8 +52,9 @@ export default function Home() {
|
||||
|
||||
<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.
|
||||
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>
|
||||
|
||||
@@ -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">
|
||||
{initials}
|
||||
</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="text-slate-600">•</span>
|
||||
<span className="text-xs font-normal text-slate-400">
|
||||
{profile.email}
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
<nav aria-label="Primary">
|
||||
<ul className="flex items-center gap-1 text-sm">
|
||||
|
||||
@@ -9,6 +9,7 @@ const SCHEME = "http";
|
||||
|
||||
export const profile = {
|
||||
name: "Tom Chien",
|
||||
email: "s871077@gmail.com",
|
||||
};
|
||||
|
||||
export type Credentials = { user: string; password: string };
|
||||
|
||||
@@ -37,6 +37,10 @@ spec:
|
||||
value: {{ .Values.server.port | quote }}
|
||||
- name: HOSTNAME
|
||||
value: "0.0.0.0"
|
||||
- name: AUTH_TRUST_HOST
|
||||
value: "true"
|
||||
# - name: AUTH_URL
|
||||
# value: https://tomchien.com
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Prod environment: deployed from a version tag on main.
|
||||
ingress:
|
||||
host: tomchien.com
|
||||
host: portal-prod.tomchien.com
|
||||
|
||||
server:
|
||||
replicas: 1
|
||||
|
||||
Reference in New Issue
Block a user