Skip to content

Commit

Permalink
disable replicas when using hpa
Browse files Browse the repository at this point in the history
  • Loading branch information
coolbry95 committed Apr 17, 2023
1 parent cfe4d5d commit 88efb9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deployments/helm-chart/templates/controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 88efb9d

Please sign in to comment.