-
Notifications
You must be signed in to change notification settings - Fork 40k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kube-proxy: initialization wait for service and endpoint handlers synced #126532
kube-proxy: initialization wait for service and endpoint handlers synced #126532
Conversation
Ensure kube-proxy waits for the services/endpointslices informer caches to be synced *and* all pre-sync events delivered before setting isInitialized=true. Otherwise, in clusters with many services, some services may be missing from svcPortMap when kube-proxy starts (e.g. during daemonset rollout). This can cause kube-proxy to temporarily remove service DNAT rules and then skip cleanup of UDP conntrack entries to a service VIP. Resolves: kubernetes#126468
Please note that we're already in Test Freeze for the Fast forwards are scheduled to happen every 6 hours, whereas the most recent run was: Sat Aug 3 16:50:49 UTC 2024. |
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Hi @wedaly. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/ok-to-test |
@wedaly there are another two handlers for Nodes and ServiceCIDRs that may face similar problems, do you mind fixing all of them ? EDIT Nevermind, we want to backport this, so better leave it this way /lgmt @danwinship for approval |
makes sense! I'm also happy to update the other handlers in a follow-on PR. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aojea, wedaly The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Follow-on from kubernetes#126532 to wait for pre-sync events delivered for the remaining two informers in kube-proxy (node and serviceCIDR).
follow-on PR is here: #126561 |
/retest |
/lgtm |
LGTM label has been added. Git tree hash: 4b65fb851918241dcbc4c07fd9088824b808e367
|
Follow-on from kubernetes#126532 to wait for pre-sync events delivered for the remaining two informers in kube-proxy (node and serviceCIDR).
…32-upstream-release-1.29 Automated cherry pick of #126532: kube-proxy: initialization wait for service and endpoint
…32-upstream-release-1.28 Automated cherry pick of #126532: kube-proxy: initialization wait for service and endpoint
…32-upstream-release-1.31 Automated cherry pick of #126532: kube-proxy: initialization wait for service and endpoint
…32-upstream-release-1.30 Automated cherry pick of #126532: kube-proxy: initialization wait for service and endpoint
Follow-on from kubernetes#126532 to wait for pre-sync events delivered for the remaining two informers in kube-proxy (node and serviceCIDR).
What type of PR is this?
/kind bug
What this PR does / why we need it:
Ensure kube-proxy waits for the services/endpointslices informer caches to be synced and all pre-sync events delivered before setting isInitialized=true. Otherwise, in clusters with many services, some services may be missing from svcPortMap when kube-proxy starts (e.g. during daemonset rollout). This can cause kube-proxy to temporarily remove service DNAT rules and then skip cleanup of UDP conntrack entries to a service VIP.
Which issue(s) this PR fixes:
Fixes #126468
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
N/A