mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 18:02:01 +00:00
Don't ever select the flannel bridge or cni bridge
This commit is contained in:
parent
38b31aff2a
commit
b6fa40d42e
@ -434,6 +434,9 @@ func chooseHostInterfaceFromRoute(routes []Route, nw networkInterfacer, addressF
|
||||
if route.Family != family {
|
||||
continue
|
||||
}
|
||||
if strings.HasPrefix(route.Interface, "flannel") || strings.HasPrefix(route.Interface, "cni") {
|
||||
continue
|
||||
}
|
||||
klog.V(4).Infof("Default route transits interface %q", route.Interface)
|
||||
finalIP, err := getIPFromInterface(route.Interface, family, nw)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user