diff --git a/operations/helm/charts/alloy/CHANGELOG.md b/operations/helm/charts/alloy/CHANGELOG.md index 33fb59f7ce..a40a249902 100644 --- a/operations/helm/charts/alloy/CHANGELOG.md +++ b/operations/helm/charts/alloy/CHANGELOG.md @@ -16,6 +16,8 @@ Unreleased - Remove readiness probe using curl when http server port is disabled. (@kalleep) +- Add option to support external autoscaler like KEDA. (@kimmj) + 1.2.1 (2025-08-07) ---------- diff --git a/operations/helm/charts/alloy/templates/controllers/deployment.yaml b/operations/helm/charts/alloy/templates/controllers/deployment.yaml index 2a7d618ee4..f190f996a9 100644 --- a/operations/helm/charts/alloy/templates/controllers/deployment.yaml +++ b/operations/helm/charts/alloy/templates/controllers/deployment.yaml @@ -14,7 +14,7 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} spec: - {{- if (and (not .Values.controller.autoscaling.enabled) (not .Values.controller.autoscaling.horizontal.enabled)) }} + {{- if (and (not .Values.controller.autoscaling.enabled) (not .Values.controller.autoscaling.horizontal.enabled) (not .Values.controller.autoscaling.external)) }} replicas: {{ .Values.controller.replicas }} {{- end }} {{- if ge (int .Capabilities.KubeVersion.Minor) 22 }} diff --git a/operations/helm/charts/alloy/templates/controllers/statefulset.yaml b/operations/helm/charts/alloy/templates/controllers/statefulset.yaml index 2e5580eec4..514d7cecd8 100644 --- a/operations/helm/charts/alloy/templates/controllers/statefulset.yaml +++ b/operations/helm/charts/alloy/templates/controllers/statefulset.yaml @@ -17,7 +17,7 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} spec: - {{- if (and (not .Values.controller.autoscaling.enabled) (not .Values.controller.autoscaling.horizontal.enabled)) }} + {{- if (and (not .Values.controller.autoscaling.enabled) (not .Values.controller.autoscaling.horizontal.enabled) (not .Values.controller.autoscaling.external)) }} replicas: {{ .Values.controller.replicas }} {{- end }} {{- if .Values.controller.parallelRollout }} diff --git a/operations/helm/charts/alloy/values.yaml b/operations/helm/charts/alloy/values.yaml index fe597f7450..cb4cd3846c 100644 --- a/operations/helm/charts/alloy/values.yaml +++ b/operations/helm/charts/alloy/values.yaml @@ -263,6 +263,8 @@ controller: # -- Creates a HorizontalPodAutoscaler for controller type deployment. # Deprecated: Please use controller.autoscaling.horizontal instead enabled: false + # -- Set `true` if you use external autoscaler like KEDA + external: false # -- The lower limit for the number of replicas to which the autoscaler can scale down. minReplicas: 1 # -- The upper limit for the number of replicas to which the autoscaler can scale up.