Skip to content

Commit

Permalink
add configurable rolling update strategy.
Browse files Browse the repository at this point in the history
  • Loading branch information
llcao committed Jul 17, 2019
1 parent 6e0a06a commit b8c66ce
Show file tree
Hide file tree
Showing 14 changed files with 38 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ spec:
istio: galley
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
maxSurge: {{ .Values.rollingMaxSurge }}
maxUnavailable: {{ .Values.rollingMaxUnavailable }}
template:
metadata:
labels:
Expand Down
2 changes: 2 additions & 0 deletions install/kubernetes/helm/istio/charts/galley/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#
enabled: true
replicaCount: 1
rollingMaxSurge: 100%
rollingMaxUnavailable: 25%
image: galley
nodeSelector: {}
tolerations: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ spec:
{{- range $key, $val := $spec.labels }}
{{ $key }}: {{ $val }}
{{- end }}
strategy:
rollingUpdate:
maxSurge: {{ $spec.rollingMaxSurge }}
maxUnavailable: {{ $spec.rollingMaxUnavailable }}
template:
metadata:
labels:
Expand Down
6 changes: 6 additions & 0 deletions install/kubernetes/helm/istio/charts/gateways/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ istio-ingressgateway:
autoscaleMax: 5
# specify replicaCount when autoscaleEnabled: false
# replicaCount: 1
rollingMaxSurge: 100%
rollingMaxUnavailable: 25%
resources:
requests:
cpu: 100m
Expand Down Expand Up @@ -164,6 +166,8 @@ istio-egressgateway:
autoscaleMax: 5
# specify replicaCount when autoscaleEnabled: false
# replicaCount: 1
rollingMaxSurge: 100%
rollingMaxUnavailable: 25%
resources:
requests:
cpu: 100m
Expand Down Expand Up @@ -243,6 +247,8 @@ istio-ilbgateway:
autoscaleMax: 5
# specify replicaCount when autoscaleEnabled: false
# replicaCount: 1
rollingMaxSurge: 100%
rollingMaxUnavailable: 25%
cpu:
targetAverageUtilization: 80
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ spec:
selector:
matchLabels:
app: istiocoredns
strategy:
rollingUpdate:
maxSurge: {{ .Values.rollingMaxSurge }}
maxUnavailable: {{ .Values.rollingMaxUnavailable }}
template:
metadata:
name: istiocoredns
Expand Down
2 changes: 2 additions & 0 deletions install/kubernetes/helm/istio/charts/istiocoredns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#
enabled: false
replicaCount: 1
rollingMaxSurge: 100%
rollingMaxUnavailable: 25%
coreDNSImage: coredns/coredns:1.1.2
# Source code for the plugin can be found at
# https://github.com/istio-ecosystem/istio-coredns-plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,8 @@ spec:
{{- end }}
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
maxSurge: {{ $spec.rollingMaxSurge }}
maxUnavailable: {{ $spec.rollingMaxUnavailable }}
selector:
matchLabels:
istio: mixer
Expand Down
4 changes: 4 additions & 0 deletions install/kubernetes/helm/istio/charts/mixer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ policy:
autoscaleMax: 5
cpu:
targetAverageUtilization: 80
rollingMaxSurge: 100%
rollingMaxUnavailable: 25%

telemetry:
enabled: true
Expand All @@ -26,6 +28,8 @@ telemetry:
autoscaleMax: 5
cpu:
targetAverageUtilization: 80
rollingMaxSurge: 100%
rollingMaxUnavailable: 25%
sessionAffinityEnabled: false

# mixer load shedding configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ spec:
{{- end }}
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
maxSurge: {{ .Values.rollingMaxSurge }}
maxUnavailable: {{ .Values.rollingMaxUnavailable }}
selector:
matchLabels:
istio: pilot
Expand Down
2 changes: 2 additions & 0 deletions install/kubernetes/helm/istio/charts/pilot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ autoscaleMin: 1
autoscaleMax: 5
# specify replicaCount when autoscaleEnabled: false
# replicaCount: 1
rollingMaxSurge: 100%
rollingMaxUnavailable: 25%
image: pilot
sidecar: true
traceSampling: 1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ spec:
istio: citadel
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
maxSurge: {{ .Values.rollingMaxSurge }}
maxUnavailable: {{ .Values.rollingMaxUnavailable }}
template:
metadata:
labels:
Expand Down
2 changes: 2 additions & 0 deletions install/kubernetes/helm/istio/charts/security/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#
enabled: true
replicaCount: 1
rollingMaxSurge: 100%
rollingMaxUnavailable: 25%
image: citadel
selfSigned: true # indicate if self-signed CA is used.
createMeshPolicy: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ spec:
istio: sidecar-injector
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
maxSurge: {{ .Values.rollingMaxSurge }}
maxUnavailable: {{ .Values.rollingMaxUnavailable }}
template:
metadata:
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#
enabled: true
replicaCount: 1
rollingMaxSurge: 100%
rollingMaxUnavailable: 25%
image: sidecar_injector
enableNamespacesByDefault: false
nodeSelector: {}
Expand Down

0 comments on commit b8c66ce

Please sign in to comment.