Pods get recreated even though min/max replica of HPA is the same

We want to maintain a fixed number of pods which is serving traffic and not cause any upscale/downscale.
To do this. we kept the minReplicas and the maxReplicas in HPA to be the same. However we still see some pods being recreated. Why is this happening and how do we maintain a fixed number of pods?


Maybe pods crash for some reason… have you checked events?

None of the pods are crashing

Why are you using HPA in this case? A simple Deployment with a fixed number of replicas would do the job

Good point. I will try that out. Thank feloy