kube-network-policies vs Terway
kube-network-policies
kube-network-policies.sigs.k8s.ioTerway
github.comSide by side
| Figure | kube-network-policies | Terway |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Linux | Yes | Yes |
| Self-hosted | Yes | Yes |
| Plans published | 1 | 1 |
| Spec score · Container Networking Software | 8.1 (#4) | 7.0 (#22) |
| Security reporting | The project directs users to the Kubernetes Security and Disclosure Information page to report vulnerabilities. | The project asks users to report code vulnerabilities to [email protected] and refers to SECURITY.md for details. |
Plans
In their own words
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.
Terway
Terway is a free, self-hosted CNI plugin for Alibaba Cloud Kubernetes (ACK), built on Alibaba Cloud ENI technology and running on Linux. Each Pod receives its own network stack and IP address. Pods on one ECS instance communicate directly, while traffic between ECS instances uses VPC ENIs without VxLAN encapsulation. ENI mode allocates interfaces to Pods, and trunking can provide independent ENIs for flexible security-group and switch settings. Node pools can be configured for exclusive ENI use. Terway supports Kubernetes NetworkPolicy, traditional security groups, egress control, dual-stack IPv4 and IPv6, and multi-cluster networking. The project uses eBPF for protocol-stack acceleration and describes the result as low latency and high throughput. Supported environments include Kubernetes ACK, Alibaba Cloud VPC/ENI, Alibaba Cloud Linux 3/4, ContainerOS, and Ubuntu. In self-hosted clusters, trunking is unavailable; the README also marks VPC Network Mode and Exclusive ENI Mode as deprecated.