k8s: networkmanager leaves the pod network's interfaces unmanaged
This commit is contained in:
parent
e0b3c0a644
commit
0998c82555
1 changed files with 52 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue