IRONBORG / RESOURCES
Kubernetes · Network security

What Kubernetes NetworkPolicy does not cover, and what runtime network contracts add

Every production cluster should use NetworkPolicy. It was designed as a pod-level L3/L4 allow-list, though, and not as a record of how workloads talk to each other. This article covers where it ends and what we think should sit alongside it.

· Cyber Security Architect, critical infrastructure and OT · Published 2026-11-15

What NetworkPolicy does well

A NetworkPolicy selects pods with a label selector and defines which traffic may reach them and leave them. Once a policy selects a pod for a direction, ingress or egress, everything in that direction is denied unless a rule allows it. Rules match peers with podSelector, namespaceSelector or ipBlock, plus ports and protocols.

A default-deny policy in every namespace, followed by explicit allows, is a solid baseline. If your clusters do not have that yet, start there before anything else in this article.

Where it stops

LimitationWhy it matters
Enforcement depends on the CNIThe API accepts the object even if the network plugin ignores it, so a policy can exist and do nothing.
L3/L4 onlyThe core API has no HTTP paths, methods or other application-level conditions.
No DNS-name rules in the core APIExternal APIs behind CDNs change IPs, and ipBlock rules end up either too broad or brittle.
Identity stops at the podThere is no notion of which process inside a container opened the connection.
Cluster-only scopeThe database on a VM, the legacy service on bare metal and the OT gateway are outside the model.
Allow-lists, not observationsA policy states what is allowed. It does not tell you what talks to what, or what changed last week.
No evidence trailNothing records which policy version applied when, what was blocked, or whether enforcement was on.

What CNI extensions add

Several CNIs extend the model. Cilium has its own policy resources with DNS-aware egress and L7 rules, and Hubble for flow visibility. Calico has its own policy model with global and tiered policies. Inside a single cluster, these may well be enough. What remains is mostly about scope (workloads outside the cluster), process-level identity and evidence over time.

What we mean by a runtime network contract

A runtime network contract is a versioned description of how a workload should communicate. It starts from what the workload was observed doing. A person reviews it, and from then on it is monitored and, optionally, enforced. Compared with a NetworkPolicy, it:

Use both

A runtime contract does not replace NetworkPolicy. A pattern we like is to discover dependencies through observation, approve them as a contract, then express the in-cluster part as NetworkPolicy or CNI policy and cover the rest with host-level enforcement. Policies generated from approved, observed traffic are far safer than policies written by hand from memory.

An example

A billing-api Deployment talks to PostgreSQL on a bare-metal host, to RabbitMQ in the cluster and to an external payments API. A NetworkPolicy can allow egress to the RabbitMQ pods and to two IP blocks.

A runtime contract records three flows: billing-api → postgres (db-prod-01, process postgres, TCP 5432), billing-api → rabbitmq (TCP 5672) and billing-api → payments.example (HTTPS). When the workload suddenly connects to an unknown external host, the contract flags it, and the record is kept. That record is what NIS2 network segmentation requirements increasingly call for.

About Ironborg

We are building runtime network contracts for Linux processes, VMs, containers and Kubernetes, using eBPF on each Linux host, with drift detection, planned enforcement and contract attestation. It is early, and you can join early testing.

Want evidence that your segmentation works?

Ironborg maps real communication across Linux, VMs, containers and Kubernetes and turns it into a network contract. Continuous attestation for NIS2, ISO 27001 and IEC 62443 audits is on the roadmap. We are in early development and looking for design partners.

Join early testing ↗

This article is general information, not legal advice. NIS2 obligations apply through national transposition laws, so check what applies to your organisation with your legal or compliance team.