Watch
0
0
Fork
You've already forked hyperhive
0

k8s: networkmanager leaves the pod network's interfaces unmanaged

This commit is contained in:
atlas 2026-11-28 05:36:49 +01:00 • committed by mara
commit 5cf3ef99a2

View file

@ -515,6 +515,19 @@ in
];
})
# NetworkManager manages every interface it finds unless told not to, and
# rewrites the routes and addresses of the ones the cluster creates: `cni0`
# (the bridge CNI), `flannel-wg` and the other `flannel*` devices, and the
# host end of each pod's veth pair (`veth*`). The same applies on a joining
# node, which runs the same CNI. A host without NetworkManager is left alone.
(lib.mkIf ((cfg.enable || cfg.join != null) && config.networking.networkmanager.enable) {
networking.networkmanager.unmanaged = [
"interface-name:cni0"
"interface-name:flannel*"
"interface-name:veth*"
];
})
# An agent of another host's cluster. The server's manifests and units are
# not here: the pods it runs come from the main node's API.
(lib.mkIf (cfg.join != null && !cfg.enable) {