Skip to main content

Stage 9: Lunar Orbit (AWS lifecycle)

Status: not implemented
  • Do not apply anything in stages/stage9/. Its README calls the code/, 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 LoadBalancer Service 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.
  • Stage 9 is where "production-shaped" meets real infrastructure.

Planned journey (AWS/EKS primary)​

#StepEvidence required
1Terraform step by step: network, EKS, nodes, registry, storage, identity, add-onsplan reviewed
2List every billable resource before applyingCost inventory
3ECR images; deploy the latest hardened Helm snapshotNot the old Stage 3 prototype
4AWS workload identity, dynamic storage, external access, DNS, TLSPassenger request over HTTPS
5Pod scaling + Cluster AutoscalerPending Pods → new node
6Drain/replace a node; measure topology + PDB effectRequest sampler during drain
7Controlled Kubernetes upgradeBehaviour checks before and after
8Backup/restore with VeleroRestored app verified
9Destroy only what you ownNo LB, disk, address, registry artifact or node still billing
10Compare 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​

DimensionWhy Kubernetes status is not enough
Provider stateAWS APIs and Terraform state must agree about LBs, volumes, identities, nodes, tags
Leftover costterraform 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.