From 88efb9daa166c24f607fa11b2abd99ea493474ca Mon Sep 17 00:00:00 2001 From: Bryan Hendryx Date: Mon, 17 Apr 2023 13:16:57 -0400 Subject: [PATCH] disable replicas when using hpa --- deployments/helm-chart/templates/controller-deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deployments/helm-chart/templates/controller-deployment.yaml b/deployments/helm-chart/templates/controller-deployment.yaml index 857d9ac303..48b5375659 100644 --- a/deployments/helm-chart/templates/controller-deployment.yaml +++ b/deployments/helm-chart/templates/controller-deployment.yaml @@ -10,7 +10,9 @@ metadata: annotations: {{ toYaml .Values.controller.annotations | nindent 4 }} {{- end }} spec: + {{- if not .Values.controller.autoscaling.enabled }} replicas: {{ .Values.controller.replicaCount }} + {{- end }} selector: matchLabels: {{- include "nginx-ingress.selectorLabels" . | nindent 6 }}