>_ IzzyLab

Topic breakdown

A HorizontalPodAutoscaler watches a metric (here — CPU utilization) and changes a Deployment's replica count, keeping load near a target value. Two fields define the range bounds: spec.minReplicas — the lower limit held even when idle, and spec.maxReplicas — the ceiling the HPA won't go above under any load. The task boils down to a pinpoint edit of these two numbers without changing spec.metrics and scaleTargetRef; editing the YAML in place is convenient with yq, but doing it by hand works too.

What's checked

  1. manifest is valid (kubeconform)
  2. kind = HorizontalPodAutoscaler
  3. scales web up to 10 replicas
  4. minReplicas = 2

What it looks like