Kubernetes HPA: Scaling on CPU Without the Flapping and the Foot-Guns
HPA scales your Deployment by comparing observed CPU usage to pod requests every 15 seconds. Here's the formula it uses, a working example, and the flapping and memory-metric traps to avoid.