Interview Prep/Azure/AKS and ACR Errors

Pods can't reach each other across namespaces after enabling network policy.

BeginnerTroubleshootingAKS and ACR Errors
Answer

Likely causes → A default-deny policy without explicit allow rules for the needed cross-namespace flows (and DNS egress).

Diagnose → kubectl get networkpolicy -A; test with kubectl exec ... -- wget -qO- http://api.backend.svc.cluster.local; Hubble flows if ACNS is on.

Fix → Add policies allowing ingress from the caller namespace (namespaceSelector with kubernetes.io/metadata.name) and egress to kube-dns on 53.

Prevent → Template baseline policies (allow DNS, allow ingress controller) with default-deny.

Azure All Azure questions Roadmap: AKS & Azure DevOps

More on AKS and ACR Errors