-
Notifications
You must be signed in to change notification settings - Fork 40.3k
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
Let LB bind unschedulable node #80428
Comments
/sig usability |
@kubernetes/sig-usability-feature-requests |
/sig network |
/triage unresolved |
/assign @andrewsykim |
Related KEP: kubernetes/enhancements#1083 Please coordinate design there |
Yes, this proposal can solve this problem. |
Reopen this, reminding to change the logic after the proposal is implemented. Simply remove this in // We add the master to the node list, but its unschedulable. So we use this to filter
// the master.
if node.Spec.Unschedulable {
return false
} |
/remove-triage unresolved |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
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/test-infra repository. |
What would you like to be added:
Let LB bind unschedulable node or not bind only if there is no pod of service with local externalTrafficPolicy on that node
Why is this needed:
service controller will not bind the node if it is unschedulable, see code:
https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/service/service_controller.go#L605-L611
It is avoid to bind the master node according to the comment, but imagine a scenario, there is a service with externalTrafficPolicy=Local, its all instances are in one node, but this node is been cordon (marked unschedulable), just to prevent the new pod from being scheduled onto it for some reason, the exist pod on that node continues to run, and service controller do not let LB bind the unschedulable node, so the service described above will be inaccessible.
The text was updated successfully, but these errors were encountered: