This story was written with the assistance of an AI writing program.
CPU-utilization targets need requests.
Your pods are busy and the HPA still does nothing. If you scale on CPU utilization, the first thing to check: it is not reading node CPU.
With a CPU utilization target, the HorizontalPodAutoscaler scales on each pod's usage as a percentage of its CPU request. The decision rule: utilization = usage / request, averaged across the pods, compared to your target.
Every 15 seconds (default sync period) the controller reads pod metrics from the resource metrics API, usually metrics-server, and computes the mean utilization. Simplified, it aims for desiredReplicas = ceil(currentReplicas x currentMetric / targetMetric), then skips the change when that ratio stays within 0.1 of 1.0 (the default tolerance), and it adjusts conservatively for pods with missing metrics or pods not yet ready before acting.
Two consequences people miss with CPU utilization:
A pod using 400m with requests.cpu: 500m is at 80% for the HPA, whatever the node says.
If a container has no CPU request, that pod's utilization is undefined and the autoscaler takes no action on that metric. Raw-value targets (an absolute CPU amount) and custom metrics do not depend on requests this way.
Check what it sees:
kubectl get hpa kubectl describe hpa web The current/target column and the events show the metric it computed, or why it could not.
Takeaway: with CPU-utilization scaling, the HPA's number lives or dies by your requests. Set requests.cpu honestly, then pick a target that leaves headroom.

