CFP: Local internalTrafficPolicy support for ClusterIP advertisements with BGP Control Plane #31389
Labels
area/bgp
help-wanted
Please volunteer for this by adding yourself as an assignee!
kind/feature
This introduces new functionality.
sig/agent
Cilium agent related.
Cilium Feature Proposal
Add support for
.spec.internalTrafficPolicy: Local
inClusterIP
service advertisements with BGP Control Plane.Is your proposed feature related to a problem?
In PR #30963 (issue #30875) we added support for
ClusterIP
service advertisements with BGP Control Plane.At the moment, the ClusterIP service prefixes are advertised from each BGP-enabled cilium node.
As the
ClusterIP
services can have.spec.internalTrafficPolicy
set toLocal
, advertising a ClusterIP from a node which has no local endpoints may cause unreachability of the advertised service if the traffic is routed to that node:(source)
Describe the feature you'd like
If
.spec.internalTrafficPolicy
of a service is set toLocal
, advertise itsClusterIP
over BGP only if it has non-zero local endpoints.(Optional) Describe your proposed solution
BGP control plane already supports similar handling of
spec.externalTrafficPolicy: Local
forLoadBalancer
services, so ideally the existing logic needs to be just extended to handle.spec.internalTrafficPolicy: Local
as well on few places in the service reconciler (e.g. in svcDesiredRoutes handling).The text was updated successfully, but these errors were encountered: