-
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
fix udp service blackhole problem when number of backends changes from 0 to non-0 #48524
Conversation
Removing label |
adding cherrypick-candidate label because this can potential solve a bunch of "my kube-dns does not work" case. @dchen1107 |
I will fix the unit test and repush |
pkg/proxy/iptables/proxier.go
Outdated
hostname string) (hcEndpoints map[types.NamespacedName]int, staleSet map[endpointServicePair]bool) { | ||
staleSet = make(map[endpointServicePair]bool) | ||
|
||
hostname string) (hcEndpoints map[types.NamespacedName]int, staleEndpoints map[endpointServicePair]bool, staleServiceNames map[proxy.ServicePortName]bool) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we create struct for the return value so it's not so unwieldy
type updateResult struct {
healthcheckEndpoints map[types.NamespacedName]int
staleEndpoints map[endpointServicePair]bool
staleServices map[proxy.ServicePortName]bool
}
/approve @bowei has LGTM |
ea41ac0
to
bd3552b
Compare
bd3552b
to
68a2749
Compare
/test pull-kubernetes-kubemark-e2e-gce |
Seems like it is still running test against the old e2e-runner.sh:
As that line doesn't exist in e2e-runner.sh anymore. |
/test pull-kubernetes-kubemark-e2e-gce |
/test pull-kubernetes-kubemark-e2e-gce |
2 similar comments
/test pull-kubernetes-kubemark-e2e-gce |
/test pull-kubernetes-kubemark-e2e-gce |
/test pull-kubernetes-kubemark-e2e-gce |
Ping |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bowei, freehan, thockin Associated issue: 48370 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue (batch tested with PRs 48374, 48524, 48519, 42548, 48615) |
@freehan - I'm fine with cherrypicking it to 1.7, but please add add a release note to this PR (describing the bug this is fixing). |
#48809 constains a cherrypick of it |
Commit found in the "release-1.7" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked. |
Automatic merge from submit-queue (batch tested with PRs 15725, 16244, 15796, 16328, 16334) Fix UDP service blackhole problem when number of endpoints changes from 0 to non-0 When a UDP service goes from 0 endpoints to 1, we need to run "conntrack -D ..." in case there are cached conntrack entries from pods hitting the "-j REJECT" iptables rule that gets installed for services with no endpoints. Additionally, we need to make sure that OpenShift nodes have conntrack-tools installed so that they can actually run /sbin/conntrack in this and other cases. (There are additional bugs open about fixing the official images.) Upstream: kubernetes/kubernetes#48524 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1487438
fixes: #48370