chart icon indicating copy to clipboard operation
chart copied to clipboard

Helm chart autoscaling doesn't scale the web deployment

Open grrywlsn opened this issue 3 years ago • 2 comments

Steps to reproduce the problem

  1. I set the autoscaling.enabled to true and set minReplicas as described in the values.yaml
  2. I deployed the Helm chart, and noticed the pod count was incorrect
  3. The HPA throws an error:
status:
  conditions:
  - lastTransitionTime: "2022-11-14T20:13:29Z"
    message: 'the HPA controller was unable to get the target''s current scale: deployments/scale.apps
      "mastodon" not found'
  1. Checking the names, the name for the target of the HPA and the rendered name of the deployment do not match.

Expected behaviour

The HPA should set the number of pods in the deployment correctly

Actual behaviour

The pod stayed at one and the HPA could not find the deployment to scale it

Detailed description

No response

Specifications

Latest version of the chart.

grrywlsn avatar Nov 14 '22 20:11 grrywlsn

Have raised a PR with the fix: https://github.com/mastodon/mastodon/pull/20690

grrywlsn avatar Nov 14 '22 20:11 grrywlsn

Why is autoscaling not more part of this helm chart?

paolomainardi avatar Feb 07 '23 14:02 paolomainardi