Skip to content

Commit

Permalink
disable replicas when auto scaling is enabled (istio#11076)
Browse files Browse the repository at this point in the history
  • Loading branch information
linsun authored and istio-testing committed Jan 22, 2019
1 parent 55fdc76 commit a2584b0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ metadata:
{{ $key }}: {{ $val }}
{{- end }}
spec:
{{- if not $spec.autoscaleMin }}
replicas: {{ $spec.replicaCount }}
{{- end }}
template:
metadata:
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ metadata:
release: {{ .Release.Name }}
istio: ingress
spec:
{{- if not .Values.autoscaleMin }}
replicas: {{ .Values.replicaCount }}
{{- end }}
template:
metadata:
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,9 @@ metadata:
version: {{ $.Chart.Version }}
istio: mixer
spec:
{{- if not $spec.autoscaleEnabled }}
replicas: {{ $spec.replicaCount }}
{{- end }}
strategy:
rollingUpdate:
maxSurge: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ metadata:
annotations:
checksum/config-volume: {{ template "istio.configmap.checksum" . }}
spec:
{{- if not .Values.autoscaleMin }}
replicas: {{ .Values.replicaCount }}
{{- end }}
strategy:
rollingUpdate:
maxSurge: 1
Expand Down

0 comments on commit a2584b0

Please sign in to comment.