~/talk

Demystifying CNI Writing a CNI from Scratch

Talkat Open Source Summit Europe 2024 · 2024-09-16..09-18· [kubernetes]
links:none on file
slides:none on file

Builds a minimal CNI as an executable placed in /opt/cni/bin and a JSON config in /etc/cni/net.d, implemented as a bash CNI that creates a veth pair, moves one end into the new network namespace, renames it to eth0, assigns IP 10.244.20/32, and adds host and container routes. The plugin prints the expected CNI JSON to stdout so the CRI accepts the result, pods get IPs and traffic (curl) works.

AI-written summary · about

  1. 0:00CNI introduction
  2. 1:46CNI specification
  3. 6:23Linux network namespaces
  4. 10:00CRI invoking CNI
  5. 11:48Virtual Ethernet in bash
  6. 15:03IP assignment in namespaces
  7. 17:34Routing for containers
  8. 22:12CNI plugin config
  9. 24:42Test CNI with pod
  10. 26:08When the CNI is no longer needed
  11. 27:56Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.