Skip to content

Commit 853b75b

Browse files
bazuchanmurali-reddy
authored andcommitted
Periodicaly sync default forward rules (#603)
1 parent 6cdc237 commit 853b75b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/controllers/routing/network_routes_controller.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,12 @@ func (nrc *NetworkRoutingController) Run(healthChan chan<- *healthcheck.Controll
256256
}
257257
}
258258

259+
// enable IP forwarding for the packets coming in/out from the pods
260+
err = nrc.enableForwarding()
261+
if err != nil {
262+
glog.Errorf("Failed to enable IP forwarding of traffic from pods: %s", err.Error())
263+
}
264+
259265
// advertise or withdraw IPs for the services to be reachable via host
260266
toAdvertise, toWithdraw, err := nrc.getActiveVIPs()
261267
if err != nil {

0 commit comments

Comments
 (0)