Skip to content

feat(chart): add HPA and topology spread #627

Closed

Description

@uniqueg

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.

<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

  1. added this to the v0.21.0 milestone on Nov 3, 2026
  2. added
    priority: medium
    status: triage
    type: feature
    workload: days
    status: in progress
    on Nov 3, 2026
  3. removed
    status: in progress
    on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumstatus: triagetype: featureworkload: days

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions