We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
istio-workshops> istio-basics/labs/05/purchase-history-vs-all-v1-header-v2.yaml
kind: VirtualService metadata: name: purchase-history-vs spec: hosts: - purchase-history.istioinaction.svc.cluster.local http: #--- If user: Tom is present in incoming request header, go to purchase-history-v2 --- - match: - headers: user: exact: Tom route: - destination: host: purchase-history.istioinaction.svc.cluster.local subset: v2 port: number: 8080 #--- Else, go to purchase-history-v1 --- - route: - destination: host: purchase-history.istioinaction.svc.cluster.local subset: v1 port: number: 8080 weight: 100
apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata: name: purchase-history-vs spec: hosts: - purchase-history.istioinaction.svc.cluster.local http: - match: - headers: user: exact: Tom route: - destination: host: purchase-history.istioinaction.svc.cluster.local subset: v3 port: number: 8080 # ---- adding timeout per retry ---- retries: attempts: 3 perTryTimeout: 3s # ---- adding an overall timeout ---- timeout: 6s - route: - destination: host: purchase-history.istioinaction.svc.cluster.local subset: v2 port: number: 8080 weight: 100
The text was updated successfully, but these errors were encountered:
No branches or pull requests
istio-workshops> istio-basics/labs/05/purchase-history-vs-all-v1-header-v2.yaml
The text was updated successfully, but these errors were encountered: