File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ apiVersion: v1
22appVersion : " 1.1"
33description : Platform service chart
44name : platform-service
5- version : 1.5.0
5+ version : 1.5.3
Original file line number Diff line number Diff line change @@ -164,5 +164,12 @@ http:
164164 { {- fail " Either replaceWith or regexRewrite are required" } }
165165 { {- end } }
166166{ {- end } }
167-
167+ { {- if $.Values.defaultRouting.mirror.enabled } }
168+ mirror:
169+ host: { {required " host is required" $.Values.defaultRouting.mirror.host } }
170+ { {- if $.Values.defaultRouting.mirror.mirrorPercentage } }
171+ mirrorPercentage:
172+ value: { { $.Values.defaultRouting.mirror.mirrorPercentage } }
173+ { {- end } }
174+ { {- end } }
168175{ {- end -} }
Original file line number Diff line number Diff line change @@ -138,6 +138,15 @@ defaultRouting:
138138 # match: '^\/service\/([^\/]+)(\/.*)$'
139139 # rewrite: '\/customprefix\/\2\/\1'
140140
141+ mirror :
142+ # enable request mirroring to a secondary service. See https://istio.io/latest/docs/tasks/traffic-management/mirroring/
143+ enabled : false
144+ # name of the mirrored service (must be in the same namespace)
145+ host : my-mirror-service
146+ # percentage of traffic to mirror (0-100). Defaults to 100 if not specified
147+ # mirrorPercentage: 100
148+
149+
141150 # Load balancer policy
142151 # Also supported are:
143152 # STICKY_SESSIONS: ensures each session will always hit the same pod.
You can’t perform that action at this time.
0 commit comments