Frontend Pods labeled app=frontend must reach backend Pods labeled app=backend on TCP 8080. Which NetworkPolicy approach allows that ingress?
Select an answer to reveal the explanation.
Short Explanation
NetworkPolicy ingress is "who may knock on these Pods' doors." Select the backend, allow from the frontend podSelector on 8080. RBAC and HTTP Ingress objects don't replace that packet allow.
Full Explanation
To permit frontend-to-backend traffic, a NetworkPolicy should select the backend Pods and list an ingress rule with a matching podSelector for frontend Pods and the destination port. Selecting only frontends and denying egress does not create an allow on the backend. Kubernetes Ingress and RBAC authorize HTTP routing and API access, not Pod CNI packet filters.