Kubernetes & Operations
NetworkPolicy semantics
NetworkPolicy isolates a pod only once a selecting policy lists a direction, allows add together, and nothing happens at all unless the network plugin enforces them.
What you will be able to do
- Explain how selectors, policyTypes and additive allow rules decide which traffic reaches a pod.
- Decide how to test a NetworkPolicy so that a silent drop or a missing enforcer is caught before an incident.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Kubernetes & Operations
- kube proxy and eBPFAdvanced · 4 min
kube-proxy turns Service IPs into node rules, and an eBPF replacement moves that work elsewhere, so you must know which component owns Service traffic before you debug…
- CoreDNS debuggingAdvanced · 5 min
Cluster DNS answers name lookups for pods, and a high ndots value can multiply queries so that overloaded CoreDNS shows up as five-second delays.
- Ingress controllersAdvanced · 4 min
An Ingress is only a set of routing rules, and it serves traffic only after an ingress controller accepts it and publishes an address.
- Gateway APIAdvanced · 4 min
Gateway API splits gateways, owned by the platform team, from routes, owned by app teams, and status conditions show whether the two have connected.
- PVC lifecycleAdvanced · 4 min
A PersistentVolumeClaim binds to a volume through a fixed lifecycle, and its reclaim policy decides whether the data survives when the claim goes.
- CSI driversAdvanced · 4 min
CSI drivers let storage vendors plug into Kubernetes from outside core, and claims and pods work only when the right driver is installed on every node that needs it.