From 1c02730d1d6a60643f7e3e41a4b041ca433c3342 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sun, 27 Apr 2025 09:23:15 +0800 Subject: [PATCH] fix(lib): k3s+multus-cni - k3s changes its path for cni plugin binaries --- lib/genK3sServerModule.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/genK3sServerModule.nix b/lib/genK3sServerModule.nix index 99af7717..8df8cd4a 100644 --- a/lib/genK3sServerModule.nix +++ b/lib/genK3sServerModule.nix @@ -73,7 +73,8 @@ in { # such as multus, calico, etc. # https://www.freedesktop.org/software/systemd/man/latest/tmpfiles.d.html#Type systemd.tmpfiles.rules = [ - "L+ /opt/cni/bin - - - - /var/lib/rancher/k3s/data/current/bin" + # https://docs.k3s.io/networking/multus-ipams + "L+ /opt/cni/bin - - - - /var/lib/rancher/k3s/data/cni/" # If you have disabled flannel, you will have to create the directory via a tmpfiles rule "d /var/lib/rancher/k3s/agent/etc/cni/net.d 0751 root root - -" # Link the CNI config directory