mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 20:40:24 +01:00
fix(lib): k3s+multus-cni - k3s changes its path for cni plugin binaries
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user