mirror of https://github.com/k3s-io/k3s
Don't ever select the flannel bridge or cni bridge
parent
880fcdb262
commit
202115d9f7
|
@ -386,6 +386,9 @@ func chooseHostInterfaceFromRoute(routes []Route, nw networkInterfacer) (net.IP,
|
|||
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