Antrea vs kube-network-policies
Antrea
antrea.iokube-network-policies
kube-network-policies.sigs.k8s.ioSide by side
| Figure | Antrea | kube-network-policies |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | Yes | — |
| Windows | Yes | — |
| Linux | Yes | Yes |
| API | Yes | — |
| Self-hosted | Yes | Yes |
| Plans published | 1 | 1 |
| Spec score · Container Networking Software | 9.0 (#1) | 8.1 (#4) |
| Integrations | The documentation lists integrations and guides for Prometheus, Octant, Multus, and Fluentd. | ANP and BANP support integrates with the Kubernetes Network Policy API custom resource definitions. |
| Project status | Antrea identifies itself as a Cloud Native Computing Foundation sandbox project. | The documentation says this is not an officially supported Google product and is not eligible for Google's Open Source Software Vulnerability Rewards Program. |
| Purpose | Antrea implements the Container Network Interface and Kubernetes NetworkPolicy to provide pod networking and security for Kubernetes workloads. | A userspace implementation that enforces Kubernetes network policies by intercepting packets with Linux NFQUEUE. |
| Requirements | The overview says Antrea has been tested with Kubernetes 1.23 or later and requires the Open vSwitch kernel module on every Kubernetes node. | The quick start prerequisites are Docker, KIND, and kubectl for its local development cluster instructions. |
| Support | The project directs users to its Kubernetes Slack channel, mailing lists, community meetings, and office hours. | The repository README lists the Kubernetes Slack #sig-network channel and the sig-network mailing list for maintainers and community support. |
Plans
In their own words
Antrea
Antrea provides networking and security for Kubernetes workloads by implementing the Container Network Interface and Kubernetes NetworkPolicy. It uses Open vSwitch as its data plane, including for Kubernetes Service load balancing. Depending on infrastructure and use case, clusters can use VXLAN or Geneve overlays or run without an overlay. Antrea extends Kubernetes policy controls with tiers, rule priorities, cluster-level policies, and Node policies. It can federate clusters with a unified data plane, multi-cluster Services, and security posture. Diagnostics include command-line and UI tools for packet tracing, policy analysis, and flow inspection; metrics can be exported to Prometheus. Pod traffic encryption with IPsec or WireGuard is supported between Linux nodes, but not on Windows nodes. Deployment guides cover Amazon EKS, Azure AKS, and Google GKE, with GKE marked Alpha. The project requires a Kubernetes cluster and the Open vSwitch kernel module on every node, and its overview says it has been tested with Kubernetes 1.23 or later. Antrea is an open-source CNCF sandbox project under Apache License 2.0.
kube-network-policies
kube-network-policies is a free, open-source userspace implementation of Kubernetes network policies for Linux. It uses Linux NFQUEUE and nftables to capture and evaluate network traffic in userspace. The project supports standard Kubernetes NetworkPolicy, AdminNetworkPolicy (ANP) and BaselineAdminNetworkPolicy (BANP). It can identify packets from pods targeted by active policies and capture those selectively; enabling ANP or BANP disables that optimization and diverts all node traffic to userspace for evaluation. Its documented evaluation pipeline checks logging, Admin Network Policy, standard NetworkPolicy, Baseline Admin Network Policy, then allows traffic by default. ANP and CNP can match external domain names using an in-memory cache of DNS A and AAAA answers. Structured JSON logs aid troubleshooting, and the PolicyEvaluator plugin pipeline can take custom validation logic. Installation instructions cover raw Kubernetes manifests and Helm. The local development setup uses KIND and lists Docker, KIND and kubectl as prerequisites. ANP or BANP also require experimental Network Policy API CRDs before deployment. The project lists an Apache-2.0 license and directs users to the Kubernetes #sig-network Slack channel and mailing list for maintainers.