Istio
Hard
Traffic Management
How can you implement header-based routing in Istio?
Select your answer:
Show answer and explanation
Answer: By using VirtualService with header-based match conditions
Explanation
Header-based routing in Istio is implemented by using VirtualService with header-based match conditions. This allows you to route traffic based on the presence, absence, or value of HTTP headers.
More hard Istio questions
- What is the purpose of Istio's 'corsPolicy' field in VirtualService?
- What is the purpose of Istio's 'trafficPolicy.connectionPool' field in DestinationRule?
- In Istio ambient mode, which component handles mTLS and L4 policy for the pods on each node?
- A namespace runs in Istio ambient mode. You need HTTP header-based routing and L7 authorization for one of its services. What do you add?
- A workload has AuthorizationPolicies with CUSTOM, DENY, and ALLOW actions. In what order does Istio check them?
- The mesh-wide PeerAuthentication in istio-system sets STRICT. The namespace has one that sets PERMISSIVE. A workload-specific policy sets portLevelMtls to DISABLE for port 8080. Which mode applies to port 8080 of that workload?