Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
# kubectl apply -f ./routerules/routerule-election-v1.yaml -n dev
apiVersion: config.istio.io/v1alpha2
kind: RouteRule
metadata:
name: election-v1
spec:
destination:
name: election
match:
request:
headers:
uri:
prefix: /v1/
rewrite:
uri: /
route:
- labels:
app: election
version: v1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment