All languages

Kubernetes

You're viewing a free preview. Sign in free to read every script.

Why this exists By default, every Pod in a Kubernetes cluster can talk to every other Pod, in any namespace. That's convenient for a demo and a real liability in production — a compromised Pod in one namespace can…

NetworkPolicy Starter: Default-Deny + Explicit Allow

A default-deny NetworkPolicy for a namespace, plus a companion policy explicitly allowing exactly the traffic that's actually needed — the pattern every real NetworkPolicy setup starts from.

Sign in free to read this script, along with the rest of the library.

Sign in free