Skip to content

Commit

Permalink
Do not configure replicas if autoscaling is enabled (#260)
Browse files Browse the repository at this point in the history
Currently, if a ScaledObject is
[paused](https://keda.sh/docs/2.16/concepts/scaling-deployments/#pausing-autoscaling),
and the Helm release is updated, the deployment is scaled according to
replicaCount but KEDA is not re-pausing the deployment
  • Loading branch information
philipp94831 authored Dec 3, 2024
1 parent a014cef commit ef00031
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/streams-app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ spec:
serviceName: {{ template "streams-app.name" . }}
podManagementPolicy: Parallel
{{- end }}
{{- if (not .Values.autoscaling.enabled) }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
app: {{ template "streams-app.name" . }}
Expand Down

0 comments on commit ef00031

Please sign in to comment.