Add namespace to hpa templates (#494)
This commit is contained in:
parent
bd8bc633df
commit
c4941b32d1
@ -26,6 +26,7 @@ apiVersion: autoscaling/v2
|
|||||||
kind: HorizontalPodAutoscaler
|
kind: HorizontalPodAutoscaler
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ template "pulsar.fullname" . }}-{{ .Values.broker.component }}"
|
name: "{{ template "pulsar.fullname" . }}-{{ .Values.broker.component }}"
|
||||||
|
namespace: {{ template "pulsar.namespace" . }}
|
||||||
spec:
|
spec:
|
||||||
maxReplicas: {{ .Values.broker.autoscaling.maxReplicas }}
|
maxReplicas: {{ .Values.broker.autoscaling.maxReplicas }}
|
||||||
{{- with .Values.broker.autoscaling.metrics }}
|
{{- with .Values.broker.autoscaling.metrics }}
|
||||||
|
|||||||
@ -26,6 +26,7 @@ apiVersion: autoscaling/v2
|
|||||||
kind: HorizontalPodAutoscaler
|
kind: HorizontalPodAutoscaler
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ template "pulsar.fullname" . }}-{{ .Values.proxy.component }}"
|
name: "{{ template "pulsar.fullname" . }}-{{ .Values.proxy.component }}"
|
||||||
|
namespace: {{ template "pulsar.namespace" . }}
|
||||||
spec:
|
spec:
|
||||||
maxReplicas: {{ .Values.proxy.autoscaling.maxReplicas }}
|
maxReplicas: {{ .Values.proxy.autoscaling.maxReplicas }}
|
||||||
{{- with .Values.proxy.autoscaling.metrics }}
|
{{- with .Values.proxy.autoscaling.metrics }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user