diff --git a/chart/templates/hpa.yaml b/chart/templates/hpa.yaml index 8575e50..64b5b0e 100644 --- a/chart/templates/hpa.yaml +++ b/chart/templates/hpa.yaml @@ -29,6 +29,7 @@ spec: type: Utilization averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} {{- end }} +{{- if .Values.frontend.enabled -}} --- apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler @@ -60,4 +61,5 @@ spec: type: Utilization averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} {{- end }} +{{- end -}} {{- end }}