@shortwavedave So, I managed to get a little further with this recently. It SHOULD work with this;
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: follow-redirects
namespace: default
spec:
workflowSelector:
labels:
release: app
configPatches:
- applyTo: HTTP_ROUTE
match:
context: ANY
patch:
operation: MERGE
value:
route:
internal_redirect_policy:
max_internal_redirects: 5
redirect_response_codes: ["308"]
However, Pilot isn’t working with this for some reason… I don’t know why.
If I use this:
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: follow-redirects
namespace: default
spec:
workflowSelector:
labels:
release: app
configPatches:
- applyTo: HTTP_ROUTE
match:
context: ANY
patch:
operation: MERGE
value:
tracing:
random_sampling:
numerator: 9990
denominator: TEN_THOUSAND
Changes are applied correctly to all my routes. But, it won’t merge route
for some reason…