Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions runsc/sandbox/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,11 @@ func routesForIface(iface net.Interface, disableIPv6 bool) ([]boot.Route, *boot.
var routes []boot.Route
for _, r := range rs {
mtu := uint32(r.MTU)
// If the route MTU is unspecified or exceeds the interface MTU, use the
// interface MTU - in GKE this might not be set or you can completely break it in the configmap.
if mtu == 0 || mtu > uint32(iface.MTU) {
mtu = uint32(iface.MTU)
}

// Is it a default route?
if r.Dst == nil {
Expand Down