feat: infra bootstrap #1
No files matched your search
@@ -10,7 +10,7 @@ KUBECONFORM ?= kubeconform
|
|||||||
PYTHON ?= python3
|
PYTHON ?= python3
|
||||||
|
|
||||||
REGISTRY ?= git.noelsabia.dev
|
REGISTRY ?= git.noelsabia.dev
|
||||||
OWNER ?= noelsabia
|
OWNER ?= noel
|
||||||
TAG ?= gate1
|
TAG ?= gate1
|
||||||
WEB_IMAGE ?= $(REGISTRY)/$(OWNER)/pulsecast-web:$(TAG)
|
WEB_IMAGE ?= $(REGISTRY)/$(OWNER)/pulsecast-web:$(TAG)
|
||||||
API_IMAGE ?= $(REGISTRY)/$(OWNER)/pulsecast-api:$(TAG)
|
API_IMAGE ?= $(REGISTRY)/$(OWNER)/pulsecast-api:$(TAG)
|
||||||
|
|||||||
@@ -49,8 +49,10 @@ hostname, and verification steps.
|
|||||||
human prerequisites.
|
human prerequisites.
|
||||||
- All three images build and pass local manifest-equivalent runtime checks
|
- All three images build and pass local manifest-equivalent runtime checks
|
||||||
(read-only root, `/tmp` tmpfs, numeric UID). There is no Dockerfile blocker.
|
(read-only root, `/tmp` tmpfs, numeric UID). There is no Dockerfile blocker.
|
||||||
- Still human-only: Gitea read-only token + hello image pull, `gitea-regcred`,
|
- Gitea pull is proven: `gitea-regcred` exists and the hello pod pulled from
|
||||||
Cloudflare Tunnel + DNS hostnames, and the three Secrets.
|
`git.noelsabia.dev/noel/hello:gate1`; the Service returned HTTP 200.
|
||||||
|
- Still human-only: Cloudflare Tunnel + DNS hostnames, `cloudflared` and
|
||||||
|
`control-auth` Secrets, then image push/deploy/smoke.
|
||||||
|
|
||||||
## CI
|
## CI
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ spec:
|
|||||||
fsGroup: 10001
|
fsGroup: 10001
|
||||||
containers:
|
containers:
|
||||||
- name: ml
|
- name: ml
|
||||||
image: git.noelsabia.dev/noelsabia/pulsecast-ml:gate1
|
image: git.noelsabia.dev/noel/pulsecast-ml:gate1
|
||||||
# Gate 1 reuses the `gate1` tag while iterating; Always makes a re-push visible.
|
# Gate 1 reuses the `gate1` tag while iterating; Always makes a re-push visible.
|
||||||
# Switch to an immutable tag + IfNotPresent at deploy freeze.
|
# Switch to an immutable tag + IfNotPresent at deploy freeze.
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ spec:
|
|||||||
fsGroup: 65532
|
fsGroup: 65532
|
||||||
containers:
|
containers:
|
||||||
- name: api
|
- name: api
|
||||||
image: git.noelsabia.dev/noelsabia/pulsecast-api:gate1
|
image: git.noelsabia.dev/noel/pulsecast-api:gate1
|
||||||
# Gate 1 reuses the `gate1` tag while iterating; Always makes a re-push visible.
|
# Gate 1 reuses the `gate1` tag while iterating; Always makes a re-push visible.
|
||||||
# Switch to an immutable tag + IfNotPresent at deploy freeze.
|
# Switch to an immutable tag + IfNotPresent at deploy freeze.
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: web
|
- name: web
|
||||||
# Replace owner/package only if your Gitea layout differs. Keep the tag in sync with `make build`.
|
# Replace owner/package only if your Gitea layout differs. Keep the tag in sync with `make build`.
|
||||||
image: git.noelsabia.dev/noelsabia/pulsecast-web:gate1
|
image: git.noelsabia.dev/noel/pulsecast-web:gate1
|
||||||
# Gate 1 reuses the `gate1` tag while iterating; Always makes a re-push visible.
|
# Gate 1 reuses the `gate1` tag while iterating; Always makes a re-push visible.
|
||||||
# Switch to an immutable tag + IfNotPresent at deploy freeze.
|
# Switch to an immutable tag + IfNotPresent at deploy freeze.
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
|||||||
+13
-10
@@ -35,9 +35,10 @@ Findings from `CLUSTER-SMOKE.md`; re-check before trusting this snapshot:
|
|||||||
`api.pulse.noelsabia.dev` have no records. That is expected until the
|
`api.pulse.noelsabia.dev` have no records. That is expected until the
|
||||||
Cloudflare Tunnel public hostnames are created.
|
Cloudflare Tunnel public hostnames are created.
|
||||||
- **No tunnel yet:** Cloudflare Tunnel has not been created.
|
- **No tunnel yet:** Cloudflare Tunnel has not been created.
|
||||||
- **Gitea pull auth is untested:** the network path works, but no
|
- **Gitea pull is proven (2026-11-14 ~06:16 CET):** `gitea-regcred` exists and
|
||||||
`gitea-regcred` image pull has succeeded because the read-only token does
|
the cluster pulled `git.noelsabia.dev/noel/hello:gate1` in 120 ms; the hello
|
||||||
not exist yet. The hello pod in Step 2 is the first proof.
|
pod is `1/1 Running` and its Service returned HTTP 200. The Gitea owner is
|
||||||
|
`noel`.
|
||||||
- **QUIC/UDP 7844 is untested.** TCP/443 to Cloudflare works, so the
|
- **QUIC/UDP 7844 is untested.** TCP/443 to Cloudflare works, so the
|
||||||
`cloudflared` manifest uses `--protocol http2` instead of relying on
|
`cloudflared` manifest uses `--protocol http2` instead of relying on
|
||||||
unverified UDP.
|
unverified UDP.
|
||||||
@@ -54,8 +55,8 @@ Findings from `CLUSTER-SMOKE.md`; re-check before trusting this snapshot:
|
|||||||
| Step | Who | Status |
|
| Step | Who | Status |
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
| Read-only cluster/manifest check | agent or human | **ready now** (`make gate1-check`) |
|
| Read-only cluster/manifest check | agent or human | **ready now** (`make gate1-check`) |
|
||||||
| Gitea push login + hello-world push | human | **ready now**; registry auth still untested |
|
| Gitea push login + hello-world push | human | **done**; hello pull and Service verified |
|
||||||
| `gitea-regcred`, `cloudflared`, `control-auth` Secrets | human | **ready now** (needs token) |
|
| `gitea-regcred`, `cloudflared`, `control-auth` Secrets | human | `gitea-regcred` **done**; `cloudflared`/`control-auth` pending |
|
||||||
| Cloudflare Tunnel + public hostnames/DNS | human | **blocked on human** — not created; DNS absent |
|
| Cloudflare Tunnel + public hostnames/DNS | human | **blocked on human** — not created; DNS absent |
|
||||||
| `api` image | human | **ready** — `make build-api` + manifest-equivalent run verified locally |
|
| `api` image | human | **ready** — `make build-api` + manifest-equivalent run verified locally |
|
||||||
| `ml` image | human | **ready** — `make build-ml` + manifest-equivalent run verified locally |
|
| `ml` image | human | **ready** — `make build-ml` + manifest-equivalent run verified locally |
|
||||||
@@ -77,14 +78,16 @@ export KUBECONFIG="/home/noel/Documents/Hackathon_2026/OKF_Vault/fch26-onemanarm
|
|||||||
export NS="fch26-onemanarmy"
|
export NS="fch26-onemanarmy"
|
||||||
export CTX="fch26-onemanarmy-sa-context"
|
export CTX="fch26-onemanarmy-sa-context"
|
||||||
export REGISTRY="git.noelsabia.dev"
|
export REGISTRY="git.noelsabia.dev"
|
||||||
export OWNER="noelsabia"
|
export OWNER="noel"
|
||||||
export TAG="gate1"
|
export TAG="gate1"
|
||||||
|
|
||||||
chmod 600 "$KUBECONFIG"
|
chmod 600 "$KUBECONFIG"
|
||||||
```
|
```
|
||||||
|
|
||||||
The kubeconfig is **not in this repo**. If it moved, change the path; never
|
The kubeconfig is **not in this repo**. If it moved, change the path; never
|
||||||
commit it or paste its contents anywhere.
|
commit it or paste its contents anywhere. The Gitea owner for this workspace
|
||||||
|
is `noel`; if your account differs, set `OWNER` and the image paths
|
||||||
|
consistently.
|
||||||
|
|
||||||
Check the local tools:
|
Check the local tools:
|
||||||
|
|
||||||
@@ -477,9 +480,9 @@ Each service image must:
|
|||||||
|
|
||||||
| Service | Image | Port | UID:GID | Health paths |
|
| Service | Image | Port | UID:GID | Health paths |
|
||||||
|---|---|---|---|---|
|
|---|---|---|---|---|
|
||||||
| web | `git.noelsabia.dev/noelsabia/pulsecast-web:gate1` | 3000 | `10001:10001` | `/` |
|
| web | `git.noelsabia.dev/noel/pulsecast-web:gate1` | 3000 | `10001:10001` | `/` |
|
||||||
| api | `git.noelsabia.dev/noelsabia/pulsecast-api:gate1` | 8080 | `65532:65532` | `/api/healthz`, `/api/readyz` |
|
| api | `git.noelsabia.dev/noel/pulsecast-api:gate1` | 8080 | `65532:65532` | `/api/healthz`, `/api/readyz` |
|
||||||
| ml | `git.noelsabia.dev/noelsabia/pulsecast-ml:gate1` | 8000 | `10001:10001` | `/healthz`, `/readyz` |
|
| ml | `git.noelsabia.dev/noel/pulsecast-ml:gate1` | 8000 | `10001:10001` | `/healthz`, `/readyz` |
|
||||||
|
|
||||||
The manifests set `runAsUser`/`runAsGroup`/`fsGroup` explicitly, so the image's
|
The manifests set `runAsUser`/`runAsGroup`/`fsGroup` explicitly, so the image's
|
||||||
named user is irrelevant; the files must be readable by that numeric UID.
|
named user is irrelevant; the files must be readable by that numeric UID.
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|||||||
NS="${NS:-fch26-onemanarmy}"
|
NS="${NS:-fch26-onemanarmy}"
|
||||||
CONTEXT="${CONTEXT:-fch26-onemanarmy-sa-context}"
|
CONTEXT="${CONTEXT:-fch26-onemanarmy-sa-context}"
|
||||||
REGISTRY="${REGISTRY:-git.noelsabia.dev}"
|
REGISTRY="${REGISTRY:-git.noelsabia.dev}"
|
||||||
OWNER="${OWNER:-noelsabia}"
|
OWNER="${OWNER:-noel}"
|
||||||
TAG="${TAG:-gate1}"
|
TAG="${TAG:-gate1}"
|
||||||
CHECK_PUBLIC="${CHECK_PUBLIC:-0}"
|
CHECK_PUBLIC="${CHECK_PUBLIC:-0}"
|
||||||
ALLOW_PENDING="${ALLOW_PENDING:-0}"
|
ALLOW_PENDING="${ALLOW_PENDING:-0}"
|
||||||
|
|||||||
Reference in new issue
Block a user