fix(lib): k3s+multus-cni - k3s changes its path for cni plugin binaries

This commit is contained in:
Ryan Yin
2025-04-27 09:23:15 +08:00
parent dc7bac0025
commit 1c02730d1d

View File

@@ -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