Istio
Hard
Security
You create an Istio PeerAuthentication with a workload selector in the root namespace, istio-system. What does Istio do with it?
Select your answer:
Show answer and explanation
Answer: It ignores the policy, because root-namespace policies need no selector
Explanation
The PeerAuthentication API states that policies with workload selectors are ignored when deployed in the root namespace. A root-namespace policy is only meaningful as the mesh-wide default without a selector. To target specific workloads, put the policy with its selector in their own namespace.
More hard Istio questions
- An Istio 1.32 DestinationRule sets outlierDetection.failurePercentageThreshold: 30 for a busy service with three pods. Why is no pod ever ejected for its failure rate?
- You add subset v2 to a DestinationRule and route a VirtualService to it in the same kubectl apply. Some requests fail with 503 for a few seconds. Why?
- What is the purpose of Istio's WorkloadEntry resource?
- What is the purpose of Istio's WorkloadGroup resource?
- What is the purpose of Istio's 'consistentHash' load balancing in DestinationRule?
- How can you implement rate limiting in Istio?