When horizontalPodAutoscaler.enabled is set to true the Deploymentspec.replicas value should not be set as it will cause the ReplicaSet to revert from whatever HPA is recommending.
To Reproduce
set horizontalPodAutoscaler.enabled to true
deploy new version
watch as Pods match the spec.replicas rather than matching HPA
Expected behavior
A new deployment matches the Pods recommended by HPA
Hi @harrymilne, just to close the loop on this, this issue was resolved and the fix is available in the latest release of the Helm chart v0.2.25. Thanks for reporting the issue and your patience on a fix!
Describe the bug
When
horizontalPodAutoscaler.enabled
is set totrue
theDeployment
spec.replicas
value should not be set as it will cause the ReplicaSet to revert from whatever HPA is recommending.To Reproduce
horizontalPodAutoscaler.enabled
totrue
spec.replicas
rather than matching HPAExpected behavior A new deployment matches the Pods recommended by HPA