explore the CNI option used by k3d

Shi
CI/CD/DevOps
Published in
Aug 22, 2023

k3d clusters use the Flannel CNI plugin by default (like most clusters)

$ k3d cluster create tkb --servers 1 --agents 3 --image rancher/k3s:latest

$ k3d node list
NAME ROLE CLUSTER STATUS
k3d-tkb-agent-0 agent tkb running
k3d-tkb-agent-1 agent tkb running
k3d-tkb-agent-2 agent tkb running
k3d-tkb-server-0 server tkb running
k3d-tkb-serverlb loadbalancer tkb running

$ docker exec -it k3d-tkb-agent-0 /bin/sh

# cd /
# find / -type f -name '*.conflist'
/var/lib/rancher/k3s/agent/etc/cni/net.d/10-flannel.conflist

--

--

Shi
CI/CD/DevOps

I am a coder/engineer/application security specialist. I like to play around with language and tools; I have strong interest in efficiency improvement.