Skip to content

avoid errors when pod not listed in PeerEndpoints

Alexandre Lossent requested to merge remove_peer_errors into master

This is meant to avoid errors like: [ALERT] 038/132833 (5687) : Proxy 'ip_affinity_gitlab-registry_registry': unable to find local peer 'router-15-wmvx1' in peers section 'openshift_peers'.

These appear when the current pod is not yet (or anymore) listed in the endpoints for the router service, typically when it's not yet considered healthy, and prevent reloading the configuration.

We solve the issue by disabling the peers section when the current pod is not listed in PeerEndpoints.

Merge request reports