Skip to content

Commit

Permalink
ignore replicas if HPA is set (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmazzitelli authored Jul 25, 2024
1 parent 4e0d799 commit 6be2d49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kiali-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ metadata:
labels:
{{- include "kiali-server.labels" . | nindent 4 }}
spec:
{{- if not .Values.deployment.hpa.spec }}
replicas: {{ .Values.deployment.replicas }}
{{- end }}
selector:
matchLabels:
{{- include "kiali-server.selectorLabels" . | nindent 6 }}
Expand Down
1 change: 1 addition & 0 deletions kiali-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ deployment:
pod_annotations: {}
pod_labels: {}
priority_class_name: ""
# if deployment.hpa is defined, this replicas setting will be ignored
replicas: 1
resources:
requests:
Expand Down

0 comments on commit 6be2d49

Please sign in to comment.