Network Policies

Lesson 12 of 28 · Services and networking · 2 min Get the course to watch

By default, every Pod in a cluster can talk to every other Pod. Your front end, your database and a stranger's test Pod all share one flat network. A NetworkPolicy is how you take that back, and it works by isolating Pods first and allowing traffic second.

The rest of this lesson

  • How selection works
  • Default deny then allow
  • Proving it
  • Does the cluster enforce it
  • The egress trap
  • The idea to keep

The full lesson is animated and narrated, with a short quiz, and you can pause it to ask a question. It comes with Kubernetes certification: the CKA curriculum.