Skip to content

Commit 88efb9d

Browse files
committed
disable replicas when using hpa
1 parent cfe4d5d commit 88efb9d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

deployments/helm-chart/templates/controller-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ metadata:
1010
annotations: {{ toYaml .Values.controller.annotations | nindent 4 }}
1111
{{- end }}
1212
spec:
13+
{{- if not .Values.controller.autoscaling.enabled }}
1314
replicas: {{ .Values.controller.replicaCount }}
15+
{{- end }}
1416
selector:
1517
matchLabels:
1618
{{- include "nginx-ingress.selectorLabels" . | nindent 6 }}

0 commit comments

Comments
 (0)