Skip to content

P4: quickstart, runbook and an end-to-end test on kind - #10

Merged
MIERAI merged 4 commits into
mainfrom
p4-quickstart
Nov 21, 2026
Merged

MIERAI merged 4 commits into
mainfrom
p4-quickstart

Conversation

@MIERAI

@MIERAI MIERAI commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

P4: the newcomer path.

  • scripts/e2e.sh instantiates the template end to end on a throwaway kind cluster slo-e2e, with no GitHub token and no external repository. init creates an instance with sample-app (cluster e2e: lab, kind). tofu apply -target=kind_cluster.this creates the cluster. An in-cluster git server (scripts/e2e/git-server.yaml) gets two repos. product.git is this checkout's working tree as one parentless commit on branch e2e, built with a temporary index, so the checkout is never touched and shallow CI checkouts work. instance.git is the instance. A full tofu apply follows. scripts/e2e/wait.py then waits until every Application is Synced+Healthy: the root, what it renders, and what the ApplicationSet generates. --experiment runs sample-app-down, which must PASS. A diagnosis runs on failure. Cleanup always runs (trap) unless --keep. TF_DATA_DIR and the kubeconfig stay in the temp dir, so ~/.kube/config and other clusters are never touched.
  • Git server: python:3.13-alpine3.22 plus apk add git git-daemon. It runs git http-backend (smart HTTP, protocol v0/v2) behind about 50 lines of stdlib Python. Repos are copied in with kubectl exec … tar. It is read-only and uses ~32 Mi.
  • .github/workflows/e2e.yml runs weekly and on v* tags (with the experiment), on PRs that change the e2e (with the experiment), and on dispatch. It uploads diagnostics on failure and the experiment report always.
  • docs/quickstart.md: prerequisites; init → push → bootstrap → watch Argo CD (15 apps) → first experiment → reading the verdict → clean up; an optional ntfy step on a prod cluster (lab clusters notify nobody); troubleshooting.
  • docs/runbook.md: a generic runbook per alert, adapted from the blueprint.
  • README / docs index / CHANGELOG updated. No bootstrap change.

Results: CI e2e (2 vCPU / 8 GB): converged in 7–8 min, sample-app-down PASS (page after 2.4–2.6 min, resolved 4.8–5.0 min after the fault), 16–17 min total. Local macOS (Docker Desktop): converged in 10 min, PASS, 20 min total.

🤖 Generated with Claude Code

MIERAI and others added 4 commits November 21, 2026 15:46
…t server; e2e workflow

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l ntfy step for a prod cluster

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MIERAI
MIERAI merged commit ee44e9f into main Nov 21, 2026
5 checks passed
@MIERAI
MIERAI deleted the p4-quickstart branch November 21, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant