Allow Proxy and Broker HPA to specify scaling policies on scaleUp or scaleDown. (#391)
This commit is contained in:
parent
ea5404c421
commit
8cb3c18377
@ -33,6 +33,10 @@ spec:
|
|||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
minReplicas: {{ .Values.broker.autoscaling.minReplicas }}
|
minReplicas: {{ .Values.broker.autoscaling.minReplicas }}
|
||||||
|
{{- with .Values.broker.autoscaling.behavior }}
|
||||||
|
behavior:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
scaleTargetRef:
|
scaleTargetRef:
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
|
|||||||
@ -33,6 +33,10 @@ spec:
|
|||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
minReplicas: {{ .Values.proxy.autoscaling.minReplicas }}
|
minReplicas: {{ .Values.proxy.autoscaling.minReplicas }}
|
||||||
|
{{- with .Values.proxy.autoscaling.behavior }}
|
||||||
|
behavior:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
scaleTargetRef:
|
scaleTargetRef:
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
|
|||||||
@ -684,6 +684,7 @@ broker:
|
|||||||
minReplicas: 1
|
minReplicas: 1
|
||||||
maxReplicas: 3
|
maxReplicas: 3
|
||||||
metrics: ~
|
metrics: ~
|
||||||
|
behavior: ~
|
||||||
# This is how prometheus discovers this component
|
# This is how prometheus discovers this component
|
||||||
podMonitor:
|
podMonitor:
|
||||||
enabled: true
|
enabled: true
|
||||||
@ -818,6 +819,7 @@ proxy:
|
|||||||
minReplicas: 1
|
minReplicas: 1
|
||||||
maxReplicas: 3
|
maxReplicas: 3
|
||||||
metrics: ~
|
metrics: ~
|
||||||
|
behavior: ~
|
||||||
# This is how prometheus discovers this component
|
# This is how prometheus discovers this component
|
||||||
podMonitor:
|
podMonitor:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user