Skip to content
Vol. 1 · Ed. 2026
CyberGlossary
Entry № 599

Kubernetes Network Policy

What is Kubernetes Network Policy?

Kubernetes Network PolicyKubernetes NetworkPolicy is a namespaced resource that controls which pods can connect to which pods or external endpoints over IP, port, and protocol.


A NetworkPolicy is enforced by the cluster's CNI plugin (Calico, Cilium, Antrea, etc.) and selects target pods by label. Each policy lists Ingress and Egress rules with optional from/to selectors for pods, namespaces, or CIDRs, plus port and protocol. Policies are additive within a namespace and default-deny only takes effect once any policy matches a pod for a direction. NetworkPolicy is the primary east-west firewall in Kubernetes, used to implement microsegmentation, isolate tenants, and limit blast radius after a pod compromise. AdminNetworkPolicy and BaselineAdminNetworkPolicy (Kubernetes 1.29+) provide cluster-scoped, prioritized rules suitable for platform teams.

Examples

  1. 01

    A default-deny ingress NetworkPolicy in a tenant namespace combined with explicit allow rules for an ingress controller.

  2. 02

    An Egress policy restricting application pods to a managed database CIDR and the cluster DNS service.

Frequently asked questions

What is Kubernetes Network Policy?

Kubernetes NetworkPolicy is a namespaced resource that controls which pods can connect to which pods or external endpoints over IP, port, and protocol. It belongs to the Cloud Security category of cybersecurity.

What does Kubernetes Network Policy mean?

Kubernetes NetworkPolicy is a namespaced resource that controls which pods can connect to which pods or external endpoints over IP, port, and protocol.

How does Kubernetes Network Policy work?

A NetworkPolicy is enforced by the cluster's CNI plugin (Calico, Cilium, Antrea, etc.) and selects target pods by label. Each policy lists Ingress and Egress rules with optional from/to selectors for pods, namespaces, or CIDRs, plus port and protocol. Policies are additive within a namespace and default-deny only takes effect once any policy matches a pod for a direction. NetworkPolicy is the primary east-west firewall in Kubernetes, used to implement microsegmentation, isolate tenants, and limit blast radius after a pod compromise. AdminNetworkPolicy and BaselineAdminNetworkPolicy (Kubernetes 1.29+) provide cluster-scoped, prioritized rules suitable for platform teams.

How do you defend against Kubernetes Network Policy?

Defences for Kubernetes Network Policy typically combine technical controls and operational practices, as detailed in the full definition above.

What are other names for Kubernetes Network Policy?

Common alternative names include: NetworkPolicy, K8s netpol, AdminNetworkPolicy.

Related terms