By default, every Pod in a Kubernetes cluster can talk to every other Pod, in every namespace. That makes things easy but means a single compromised Pod can reach databases and internal APIs it has no business touching. A NetworkPolicy is a namespaced object that restricts which traffic is allowed to and from selected Pods, acting like a firewall defined by labels.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 6 more sections, 5 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.