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 }}