Allow Proxy and Broker HPA to specify scaling policies on scaleUp or scaleDown. (#391)

This commit is contained in:
Frank Kelly 2023-09-15 15:12:12 -04:00 committed by GitHub
parent ea5404c421
commit 8cb3c18377
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -33,6 +33,10 @@ spec:
{{- toYaml . | nindent 4 }}
{{- end }}
minReplicas: {{ .Values.broker.autoscaling.minReplicas }}
{{- with .Values.broker.autoscaling.behavior }}
behavior:
{{- toYaml . | nindent 4 }}
{{- end }}
scaleTargetRef:
apiVersion: apps/v1
kind: StatefulSet

View File

@ -33,6 +33,10 @@ spec:
{{- toYaml . | nindent 4 }}
{{- end }}
minReplicas: {{ .Values.proxy.autoscaling.minReplicas }}
{{- with .Values.proxy.autoscaling.behavior }}
behavior:
{{- toYaml . | nindent 4 }}
{{- end }}
scaleTargetRef:
apiVersion: apps/v1
kind: StatefulSet

View File

@ -684,6 +684,7 @@ broker:
minReplicas: 1
maxReplicas: 3
metrics: ~
behavior: ~
# This is how prometheus discovers this component
podMonitor:
enabled: true
@ -818,6 +819,7 @@ proxy:
minReplicas: 1
maxReplicas: 3
metrics: ~
behavior: ~
# This is how prometheus discovers this component
podMonitor:
enabled: true