Skip to content

Commit

Permalink
cilium: Enable health datapath also in annotation mode
Browse files Browse the repository at this point in the history
In both cases IPIP can be used, therefore expand enablement of the
EnableHealthDatapath config variable.

Signed-off-by: Daniel Borkmann <[email protected]>
  • Loading branch information
borkmann committed Sep 30, 2024
1 parent a6668eb commit 31c51f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion daemon/cmd/kube_proxy_replacement.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ func initKubeProxyReplacementOptions(sysctl sysctl.Sysctl, tunnelConfig tunnel.C

option.Config.EnableHealthDatapath =
option.Config.DatapathMode == datapathOption.DatapathModeLBOnly &&
option.Config.NodePortMode == option.NodePortModeDSR &&
(option.Config.NodePortMode == option.NodePortModeDSR ||
option.Config.NodePortMode == option.NodePortModeAnnotation) &&
option.Config.LoadBalancerDSRDispatch == option.DSRDispatchIPIP
}

Expand Down

0 comments on commit 31c51f7

Please sign in to comment.