Repository navigation
Description
Split out of #894 (PR #895), where it was deliberately out of scope as a cluster-object change rather than Terraform.
Prod has no NodePool app pods can land on. infra/terraform/modules/eks/main.tf:109 sets node_pools = ["system"], so Auto Mode's general-purpose pool is not enabled — the only managed pool is system. Verified against the live cluster: er-prod has no app, runner-sm or runner-l NodePool, because nothing has ever applied them there.
infrastructure.md §5's table also asks for a different capacity type per environment — app is "spot in dev, on-demand in prod" — so this is not a copy of infra/k8s/nodepools/app.yaml, which lists ["spot", "on-demand"] with spot preferred.
The layout decision this forces
make cluster-objects is hardcoded to ER_DEV_CONTEXT and applies infra/k8s/nodepools/ non-recursively — which is the whole mechanism keeping measure/ out of the cluster, with no exclusion list to maintain. So a prod pool cannot simply be a new file in that directory, and a prod/ subdirectory would lean on the same non-recursive trick for a second, unrelated reason.
Options, none obviously right:
- per-environment subdirectories (
nodepools/dev/,nodepools/prod/) with the shared runner pools staying at the top level, andcluster-objectstaking a context + environment. Movesapp.yaml, which touches the live dev cluster's applied set. - a
prod-filename prefix and a glob, which keepsmeasure/logic untouched but makes the apply list implicit. - keep one directory and parameterise capacity type by patch/kustomize, which adds a tool this repo does not currently use for cluster objects.
Whichever is chosen, .claude/skills/infra-platform/references/coverage.md derives "which infra/k8s paths anything applies, and which NodePools the apply is non-recursive past", so it moves with this.
Also in scope
infra/k8s/network-policy-controller.yaml has never been applied to er-prod. Per infrastructure.md §8.5 NetworkPolicy enforcement fails open until it is applied — the manifests exist and are silently inert, which is the §8.5 silent failure the dev probe caught. A prod cluster about to take internet traffic should not be the place that is discovered.
Acceptance
- an
apppod schedules oner-prodon an on-demand node -
kubectl --context er-prod get nodepoolslists what was intended, and nothing frommeasure/ - a default-deny NetworkPolicy actually denies on
er-prod— probed, not assumed, because the failure mode is that it silently permits -
coverage.mdregenerated
Activity