Kubernetes Networking: How to Write a CNI Plugin From Scratch
summary
Bash CNI plugin implements ADD/DEL, creates a bridge + veth pair, moves one end into the pod netns, assigns IPs by incrementing a file, and sets iface up with ip and iproute2; demo runs on two nodes with per-node pod CIDRs and shows pods get addresses (.4/.5) but need explicit iptables FORWARD and MASQUERADE plus static inter-node routes to reach other nodes; no long‑running daemon is provided so node-level rules are applied manually and connectivity works after those changes.
AI-written summary · about
chapters (7)
- 0:00Start
- 1:24What is CNI?
- 4:10What a CNI plugin is made of?
- 6:05The weave example..
- 8:25How a CNI plugin is being used in K8s?
- 10:11How a CNI plugin is executed?
- 11:43Anatomy of pod networking
related talks
32mDemystifying CNI Writing a CNI from Scratch
37mKubernetes and the CNI: Where We Are and What's Next - Casey Callendrello, CoreOS
34m"My CNI Plugin Did… What?!": Debugging CNI with Style & Aplomb
40mModular Overlay Networking Solutions with the Container Network Interface
20mKubernetes Networking 101
37mIntroduction to CNI, the Container Network Interface Project
31mEverything You Ever Wanted to Know About CNIs (Container Network Interface) and ...
45mHow to Build a Kubernetes Networking Solution from Scratch
