HPA is not working properly due to replicas set #29388
Labels
apache
solved
tech-issues
The user has a technical issue about an application
triage
Triage is needed
Name and Version
bitnami/apache 11.2.17
What architecture are you using?
arm64
What steps will reproduce the bug?
When autoscaling is enabled to use HPA to rescale the pod per target setting, the pod doesn't rescale by HPA setting since
spec.replicas
is in deploy. (https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#migrating-deployments-and-statefulsets-to-horizontal-autoscaling)https://github.com/bitnami/charts/blob/main/bitnami/apache/templates/deployment.yaml#L19
Can we have a condition for the replica setting in the template? like,
And, regarding this issue (kubernetes/kubernetes#74099) in the HPA controller, is it possible to switch the resource order in https://github.com/bitnami/charts/blob/main/bitnami/apache/templates/hpa.yaml#L24-L47
What is the expected behavior?
spec.replicas
for only autoscaling disable (https://github.com/bitnami/charts/blob/main/bitnami/apache/templates/deployment.yaml#L19 )What do you see instead?
spec.replicas
is always seen in deploying even hpa is enabled.spec.metrics
listThe text was updated successfully, but these errors were encountered: