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
- 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?
- What is the purpose of Istio's 'locality' field in DestinationRule?
- What is the purpose of Istio's 'mirror' field in VirtualService?