Terraform 설계서 7.2·7.3의 WP-07 내용. - bootstrap/kubeadm/init-cp.sh: kubeadm init(사설 IP advertise, EIP cert SAN, pod CIDR 10.244.0.0/16) → flannel v0.28.9 → Argo CD v3.5.3(server-side apply) → root-app 적용 → 워커 join 명령을 /opt/selfheal/join.sh(0600)에 저장. 재실행 안전. - bootstrap/kubeadm/join-worker.sh: join 명령을 stdin으로 받아 실행(토큰이 터미널·로그에 남지 않음). 이미 join된 노드는 0으로 종료. - argocd/root-app.yaml: apps/ 재귀 app-of-apps(공개 저장소, 자격증명 불요). - apps/rbac.yaml + workloads/rbac: 네임스페이스 chaos-mesh·demo, SA harness(ClusterRole selfheal-harness: chaos-mesh.org/*, deployments·scale, pods, nodes patch, pods/eviction), SA ai-reader(ClusterRole view).
selfheal-lab-gitops
GitOps and configuration repository for the self-healing verification lab
(VM + container mixed environment). Infrastructure lives in
seon-labs/selfheal-lab-terraform; this repository holds everything that runs
on top of it.
This repository is public on purpose: every EC2 node and GCE VM clones it anonymously at first boot (cloud-init / startup script), and MIG instances are recreated by autohealing without an operator. Never commit secrets here; values live in GCP Secret Manager and are fetched at runtime.
| Path | Owner | Filled in |
|---|---|---|
bootstrap/kubeadm/ |
operator, run once | WP-07: containerd/kubeadm init+join, flannel, Argo CD install, root-app |
argocd/root-app.yaml |
Argo CD app-of-apps root | WP-07 |
apps/ |
child Argo CD Applications | WP-14 |
workloads/{demo-app,ingress-nginx,chaos-mesh,alloy}/ |
Argo CD | WP-14, WP-15 |
vm/<role>/apply.sh |
GCE startup script and make vm-sync |
WP-08..12 |
vm/<role> matches the role metadata each VM gets from Terraform:
observability, harness, ai-env, postgres-primary, postgres-replica,
legacy-api. The startup script runs vm/<role>/apply.sh when it exists and is
executable; apply.sh must be idempotent because make vm-sync re-runs it.