Don't ever select the flannel bridge or cni bridge

k3s-v1.13.4
Darren Shepherd 2019-02-07 20:54:50 -07:00
parent a8818f071c
commit 5daeef1215
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 {