Don't ever select the flannel bridge or cni bridge

k3s-v1.14.6
Darren Shepherd 2019-02-07 20:54:50 -07:00 committed by Erik Wilson
parent 880fcdb262
commit 202115d9f7
1 changed files with 3 additions and 0 deletions

View File

@ -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 {