This is an automated email from the ASF dual-hosted git repository.
mmarshall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-helm-chart.git
The following commit(s) were added to refs/heads/master by this push:
new 8cb3c18 Allow Proxy and Broker HPA to specify scaling policies on
scaleUp or scaleDown. (#391)
8cb3c18 is described below
commit 8cb3c18377e547e5de4ca19e63138ca1387aef59
Author: Frank Kelly <[email protected]>
AuthorDate: Fri Sep 15 15:12:12 2023 -0400
Allow Proxy and Broker HPA to specify scaling policies on scaleUp or
scaleDown. (#391)
---
charts/pulsar/templates/broker-hpa.yaml | 4 ++++
charts/pulsar/templates/proxy-hpa.yaml | 4 ++++
charts/pulsar/values.yaml | 2 ++
3 files changed, 10 insertions(+)
diff --git a/charts/pulsar/templates/broker-hpa.yaml
b/charts/pulsar/templates/broker-hpa.yaml
index f6e49e9..f52850a 100644
--- a/charts/pulsar/templates/broker-hpa.yaml
+++ b/charts/pulsar/templates/broker-hpa.yaml
@@ -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
diff --git a/charts/pulsar/templates/proxy-hpa.yaml
b/charts/pulsar/templates/proxy-hpa.yaml
index 7565de9..587382f 100644
--- a/charts/pulsar/templates/proxy-hpa.yaml
+++ b/charts/pulsar/templates/proxy-hpa.yaml
@@ -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
diff --git a/charts/pulsar/values.yaml b/charts/pulsar/values.yaml
index 34c2898..cbdc1bd 100644
--- a/charts/pulsar/values.yaml
+++ b/charts/pulsar/values.yaml
@@ -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