Skip to content

Commit

Permalink
Don't ever select the flannel bridge or cni bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud authored and brandond committed Sep 16, 2021
1 parent f517242 commit cdb18d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions staging/src/k8s.io/apimachinery/pkg/util/net/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,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 {
Expand Down

0 comments on commit cdb18d0

Please sign in to comment.