We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5decd7 commit c9e09c0Copy full SHA for c9e09c0
cns/middlewares/k8sSwiftV2_windows.go
@@ -14,6 +14,14 @@ func (k *K8sSWIFTv2Middleware) setRoutes(podIPInfo *cns.PodIpInfo) error {
14
if podIPInfo.NICType == cns.InfraNIC {
15
logger.Printf("[SWIFTv2Middleware] skip setting default route on InfraNIC interface")
16
podIPInfo.SkipDefaultRoutes = true
17
+
18
+ // as a workaround, set a default route with gw 0.0.0.0 to avoid HNS setting default route to infraNIC interface
19
+ // TODO: remove this once HNS supports custom routes adding to the pod
20
+ route := cns.Route{
21
+ IPAddress: "0.0.0.0/0",
22
+ GatewayIPAddress: "0.0.0.0",
23
+ }
24
+ podIPInfo.Routes = append(podIPInfo.Routes, route)
25
}
26
return nil
27
0 commit comments