Skip to content

loadbalancer/healthserver: refresh ProxyRedirect per request#44286

Merged
mhofstetter merged 1 commit intocilium:mainfrom
mhofstetter:pr/mhofstetter/loadbalancer-healthserver-proxyredirect-fix
Feb 11, 2026
Merged

loadbalancer/healthserver: refresh ProxyRedirect per request#44286
mhofstetter merged 1 commit intocilium:mainfrom
mhofstetter:pr/mhofstetter/loadbalancer-healthserver-proxyredirect-fix

Conversation

@mhofstetter
Copy link
Copy Markdown
Member

@mhofstetter mhofstetter commented Feb 10, 2026

This commit fixes stale ProxyRedirect reads in the health server by reloading Service state from the services table on each request. This prevents incorrect local endpoint counts when Envoy redirect state changes after the listener is created (which is the case).

Note: Seems like this is related to a recent comment (3 weeks ago) on another issue that mentions that externalTrafficPolicy=Local seems to be broken (again) for Cilium Ingress & Gateway API: #33547 (comment)

@mhofstetter mhofstetter added kind/bug This is a bug in the Cilium logic. release-note/bug This PR fixes an issue in a previous release of Cilium. needs-backport/1.19 This PR / issue needs backporting to the v1.19 branch needs-backport/1.18 This PR / issue needs backporting to the v1.18 branch labels Feb 10, 2026
@mhofstetter mhofstetter force-pushed the pr/mhofstetter/loadbalancer-healthserver-proxyredirect-fix branch from b187162 to 7f3d8f1 Compare February 11, 2026 07:36
@mhofstetter mhofstetter requested a review from joamaki February 11, 2026 08:06
@mhofstetter mhofstetter marked this pull request as ready for review February 11, 2026 08:06
@mhofstetter mhofstetter requested a review from a team as a code owner February 11, 2026 08:06
This commit fixes stale ProxyRedirect reads in the health server by reloading Service
state from the services table on each request. This prevents incorrect
local endpoint counts when Envoy redirect state changes after the
listener is created (which is the case).

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
@mhofstetter mhofstetter force-pushed the pr/mhofstetter/loadbalancer-healthserver-proxyredirect-fix branch from 7f3d8f1 to 006a22c Compare February 11, 2026 08:12
@mhofstetter
Copy link
Copy Markdown
Member Author

/test

Copy link
Copy Markdown
Contributor

@joamaki joamaki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouch. Good catch. Thanks!

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Feb 11, 2026
@mhofstetter mhofstetter added this pull request to the merge queue Feb 11, 2026
Merged via the queue into cilium:main with commit 19029b8 Feb 11, 2026
76 checks passed
@mhofstetter mhofstetter deleted the pr/mhofstetter/loadbalancer-healthserver-proxyredirect-fix branch February 11, 2026 13:30
@glrf glrf mentioned this pull request Feb 17, 2026
12 tasks
@glrf glrf added backport-pending/1.19 The backport for Cilium 1.19.x for this PR is in progress. and removed needs-backport/1.19 This PR / issue needs backporting to the v1.19 branch labels Feb 17, 2026
@glrf glrf mentioned this pull request Feb 17, 2026
2 tasks
@glrf glrf added backport-pending/1.18 The backport for Cilium 1.18.x for this PR is in progress. and removed needs-backport/1.18 This PR / issue needs backporting to the v1.18 branch labels Feb 17, 2026
@github-actions github-actions bot added backport-done/1.18 The backport for Cilium 1.18.x for this PR is done. backport-done/1.19 The backport for Cilium 1.19.x for this PR is done. and removed backport-pending/1.18 The backport for Cilium 1.18.x for this PR is in progress. backport-pending/1.19 The backport for Cilium 1.19.x for this PR is in progress. labels Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-done/1.18 The backport for Cilium 1.18.x for this PR is done. backport-done/1.19 The backport for Cilium 1.19.x for this PR is done. kind/bug This is a bug in the Cilium logic. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/bug This PR fixes an issue in a previous release of Cilium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants