Stage 9: Lunar Orbit (AWS lifecycle)
Status: not implemented
- Do not apply anything in
stages/stage9/. Its README calls thecode/,k8s/and Terraform content unverified legacy scaffolding. stages/eks/is research material only, not a safe learner lifecycle.- Sources:
stages/stage9/README.md,ROADMAP.md,stages/eks/README.md.
You will be able to: list what a trustworthy cloud stage must demonstrate, and verify the repo's own status.
Where we left off
- Stages 1–7 (and the planned Stage 8) all run on kind: three Docker containers on your laptop.
- That hides everything a real cloud adds:
- a
LoadBalancerService gets a real, billable load balancer, not a MetalLB address, - a PVC becomes a disk in one availability zone,
- nodes can be added and removed by an autoscaler,
- upgrades, backups and teardown cost real money when they go wrong.
- a
- Stage 9 is where "production-shaped" meets real infrastructure.
Planned journey (AWS/EKS primary)
| # | Step | Evidence required |
|---|---|---|
| 1 | Terraform step by step: network, EKS, nodes, registry, storage, identity, add-ons | plan reviewed |
| 2 | List every billable resource before applying | Cost inventory |
| 3 | ECR images; deploy the latest hardened Helm snapshot | Not the old Stage 3 prototype |
| 4 | AWS workload identity, dynamic storage, external access, DNS, TLS | Passenger request over HTTPS |
| 5 | Pod scaling + Cluster Autoscaler | Pending Pods → new node |
| 6 | Drain/replace a node; measure topology + PDB effect | Request sampler during drain |
| 7 | Controlled Kubernetes upgrade | Behaviour checks before and after |
| 8 | Backup/restore with Velero | Restored app verified |
| 9 | Destroy only what you own | No LB, disk, address, registry artifact or node still billing |
| 10 | Compare with GKE (optional hands-on) | Portability analysis |
- Goal is production-shaped, not production-ready; a final gap analysis covers database HA, regional resilience, RPO/RTO, capacity, security and ownership.
Two extra evidence dimensions
| Dimension | Why Kubernetes status is not enough |
|---|---|
| Provider state | AWS APIs and Terraform state must agree about LBs, volumes, identities, nodes, tags |
| Leftover cost | terraform destroy success ≠ every billable dependent is gone |
- A PVC surviving Pod deletion proves one narrow thing, not multi-AZ availability, restorable backups or an RPO.
Check the repo's status
Read-only, no AWS credentials needed:
sed -n '1,120p' stages/stage9/README.md
grep -n "not implemented" stages/stage9/README.md
grep -n "research input only" stages/stage9/README.md
sed -n '1,80p' stages/eks/README.md
- Both
greps should match. If one doesn't, the repo has changed, so re-read the READMEs before trusting any script. - The steps most likely to leave billable leftovers: step 4 (load balancer, Elastic IP), steps 5–6 (extra nodes and EBS volumes after scale-up), step 8 (Velero snapshots and S3 objects), plus NAT gateways and ECR images from steps 1 and 3.
You should now be able to explain
- Explain why the current EKS files are not a supported stage.
- Say why persistence ≠ availability-zone recovery.
- Treat cleanup verification as part of the stage.
Next: Stage 10 or the EKS boundary.