Weave Net 2.1: Fast Datapath and Simplified Encryption
K8s Guru
2 min read

Table of Contents
Introduction
On May 18, 2017, Weaveworks released Weave Net 2.1, the latest iteration of its peer-to-peer Kubernetes networking fabric. The update sharpened performance via the fast datapath, streamlined encrypted meshes, and tightened integration with Kubernetes NetworkPolicy—while preserving Weave Net’s hallmark ease of installation.
What’s New
- Fast Datapath Improvements: Leveraging conntrack bypass and better flow caching, Weave Net 2.1 reduces latency for pod-to-pod traffic—especially on clusters with higher packet rates.
- Automatic Encryption Enhancements: Simplified
passwordsecret distribution and optimized AES-GCM usage to secure multi-cloud networks with minimal overhead. - Network Policy Controller: Updated controller supports Kubernetes
networking.k8s.io/v1policies, aligning with the GA spec introduced in Kubernetes 1.7. - IPAM Diagnostics: New
weave status ipamoutput highlights address allocation, helping SREs catch exhaustion before it causes pod scheduling failures. - Multi-Cluster Bridges (tech preview): Experimental
weave connectflows let operators stitch clusters together over WAN links for hybrid deployments.
Installation Refresher
kubectl apply -f https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')
Enable encryption with a shared secret:
kubectl create secret -n kube-system generic weave-passwd \
--from-literal=password='S3cur3Mesh!'
kubectl set env daemonset/weave-net -n kube-system \
WEAVE_PASSWORD='$(WEAVE_PASSWORD)'
Operating Tips
- Use
weave status connectionsto confirm peers form a full mesh; investigate dropped connections caused by firewalls or MTU mismatches. - For clusters on AWS/GCE, set
WEAVE_MTU=8912to optimize overlay packets for jumbo frames; default 1376 works across public internet. - Combine Weave Net with
kubectl port-forwardorskaffold devto emulate production routing while developing locally. - Monitor Weave Net via the Prometheus exporter (
--metricsflag) to surface peer RTT, packet drops and encryption stats.
Use Cases
- Multi-cloud Clusters: Encrypted mesh network simplifies bridging on-prem and cloud worker nodes.
- Simple Policy Enforcement: Without bringing in Calico/Cilium, teams can enforce basic ingress/egress rules using Kubernetes NetworkPolicy.
- Legacy Environment Integration: Fast datapath ensures pods on older kernels still achieve respectable throughput.
Summary
| Aspect | Details |
|---|---|
| Release Date | May 18, 2017 |
| Key Innovations | Fast datapath tuning, streamlined encryption, NetworkPolicy controller updates |
| Significance | Reinforced Weave Net as the plug-and-play CNI for teams prioritizing simplicity with optional security controls |