fix/marketing-hpa-min-replicas
Kubernetes rejects minReplicas=0 unless at least one Object or External metric is configured. With only a Resource (CPU) metric, the HPA is invalid: HorizontalPodAutoscaler.autoscaling "neuron-marketing-hpa" is invalid: [spec.minReplicas: Invalid value: 0: must be greater than or equal to 1, spec.metrics: Forbidden: must specify at least one Object or External metric to support scaling to zero replicas] This was blocking the entire neuron-prod Argo CD sync — every manifest in the directory had to be applied individually after this single resource caused the multi-resource patch to fail. The dharma NetworkPolicy applied today only because Argo retried individually after the failure. The file header already states "minReplicas=1 prevents unnecessary idle waste" as the intent for this single-Legion-node period; this brings the marketing HPA into line with the other two.
infrastructure
Personal infrastructure-as-code for Legion (k3s home server) and supporting tooling.
| Doc | What it covers |
|---|---|
AGENTS.md |
Full reference: machines, secrets, services, domains, namespaces, common operations |
servers/legion/README.md |
What's running on Legion and how deployment works |
servers/legion/RUNBOOK.md |
Disaster recovery — full restore from scratch |
Quick start
cd servers/legion
direnv allow
terraform plan
terraform apply
Push to servers/ to deploy app changes via Argo CD.
Languages
HCL
78.4%
Shell
17.5%
Python
2.6%
Dockerfile
1.5%