mastodon / chart

Helm chart for Mastodon deployment in Kubernetes
GNU Affero General Public License v3.0
158 stars 92 forks source link

Helm chart autoscaling doesn't scale the web deployment #21

Open grrywlsn opened 1 year ago

grrywlsn commented 1 year ago

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 commented 1 year ago

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

paolomainardi commented 1 year ago

Why is autoscaling not more part of this helm chart?