diff --git a/charts/pulsar/templates/broker-hpa.yaml b/charts/pulsar/templates/broker-hpa.yaml index f52850a..83a24aa 100644 --- a/charts/pulsar/templates/broker-hpa.yaml +++ b/charts/pulsar/templates/broker-hpa.yaml @@ -26,6 +26,7 @@ apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: "{{ template "pulsar.fullname" . }}-{{ .Values.broker.component }}" + namespace: {{ template "pulsar.namespace" . }} spec: maxReplicas: {{ .Values.broker.autoscaling.maxReplicas }} {{- with .Values.broker.autoscaling.metrics }} diff --git a/charts/pulsar/templates/proxy-hpa.yaml b/charts/pulsar/templates/proxy-hpa.yaml index 587382f..291c072 100644 --- a/charts/pulsar/templates/proxy-hpa.yaml +++ b/charts/pulsar/templates/proxy-hpa.yaml @@ -26,6 +26,7 @@ apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: "{{ template "pulsar.fullname" . }}-{{ .Values.proxy.component }}" + namespace: {{ template "pulsar.namespace" . }} spec: maxReplicas: {{ .Values.proxy.autoscaling.maxReplicas }} {{- with .Values.proxy.autoscaling.metrics }}