CertGrid CertGrid
Hands-on Lab·Kubernetes and Cloud Native Associate

NetworkPolicy Scope and Limitations

Two Pods talk in plaintext, a default-deny stops them dead, and one label-based rule lets exactly one caller back in. Then `kubectl explain` shows the ceiling: addresses and ports, no identity and no HTTP - which is the whole reason meshes exist.

Networking and Discovery Guide 18 of 46 Intermediate

Written against the versions above. NetworkPolicy enforcement needs a CNI plugin that implements it. Calico does; some plugins accept the object and enforce nothing.

Enforcement is done by the CNI plugin on each node, not by the API server.
Server NameIP AddressOSRolesCPURAMHDD
CKA1001192.168.0.175Ubuntu 26.04 LTSControl Plane Node2 Core4 GB50 GB
CKA1001-NODE02192.168.0.177Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB

Before you start

  1. By default, everything can reach everything

  2. Default-deny, and the shape of the object

  3. Let exactly one caller back in

  4. The ceiling, in two explain outputs

Official sources