**Problem** The chart has app replicas and a PodDisruptionBudget (#584), but operators can't autoscale the app or spread it across nodes and zones. **Proposal** Per app values key, in `helm create` names and shapes. The shipped key `replicas` stays. ```yaml <valuesKey>: autoscaling: # HPA autoscaling/v2, CPU and memory only enabled: false minReplicas: 2 maxReplicas: 4 targetCPUUtilizationPercentage: 80 # targetMemoryUtilizationPercentage: unset topologySpreadConstraints: [] # passed through; labelSelector filled in if omitted ``` - `replicas` isn't rendered when `autoscaling.enabled` is set. - A new `foca-common.hpa` template, petstore example files and schema. - Docs: a CPU-based HPA needs metrics-server; more than one replica runs startup work in each pod until the `foca` CLI and its switches are used. - Migration guide: app charts add the new template file. **Acceptance criteria** - Chart tests: default render unchanged; HPA on drops `replicas`; spread selector defaulting. - The kind install of petstore passes with autoscaling on.
Activity