Skip to content
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

Closed
imroc opened this issue Jul 22, 2019 · 16 comments
Closed

Let LB bind unschedulable node #80428

imroc opened this issue Jul 22, 2019 · 16 comments
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. sig/network Categorizes an issue or PR as relevant to SIG Network.

Comments

@imroc
Copy link
Contributor

imroc commented Jul 22, 2019

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

func getNodeConditionPredicate() corelisters.NodeConditionPredicate {
	return func(node *v1.Node) bool {
		// 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
		}

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.

@imroc imroc added the kind/feature Categorizes issue or PR as related to a new feature. label Jul 22, 2019
@k8s-ci-robot k8s-ci-robot added the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Jul 22, 2019
@imroc
Copy link
Contributor Author

imroc commented Jul 22, 2019

/sig usability

@imroc
Copy link
Contributor Author

imroc commented Jul 22, 2019

@kubernetes/sig-usability-feature-requests

@imroc
Copy link
Contributor Author

imroc commented Jul 22, 2019

cc @brendandburns

@neolit123
Copy link
Member

/sig network

@k8s-ci-robot k8s-ci-robot added sig/network Categorizes an issue or PR as relevant to SIG Network. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Jul 23, 2019
@vllry
Copy link
Contributor

vllry commented Jul 25, 2019

/triage unresolved

@k8s-ci-robot k8s-ci-robot added the triage/unresolved Indicates an issue that can not or will not be resolved. label Jul 25, 2019
@vllry
Copy link
Contributor

vllry commented Jul 25, 2019

/assign @andrewsykim

@andrewsykim
Copy link
Member

andrewsykim commented Jul 25, 2019

Related KEP: kubernetes/enhancements#1083

Please coordinate design there

@imroc
Copy link
Contributor Author

imroc commented Jul 26, 2019

Related KEP: kubernetes/enhancements#1083

Please coordinate design there

Yes, this proposal can solve this problem.

@imroc imroc closed this as completed Jul 26, 2019
@imroc imroc reopened this Jul 29, 2019
@imroc
Copy link
Contributor Author

imroc commented Jul 29, 2019

Reopen this, reminding to change the logic after the proposal is implemented. Simply remove this in getNodeConditionPredicate():

		// 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
		}

@andrewsykim
Copy link
Member

/remove-triage unresolved

@k8s-ci-robot k8s-ci-robot removed the triage/unresolved Indicates an issue that can not or will not be resolved. label Aug 5, 2019
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 3, 2019
@andrewsykim
Copy link
Member

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 6, 2019
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 4, 2020
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Mar 5, 2020
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. sig/network Categorizes an issue or PR as relevant to SIG Network.
Projects
None yet
Development

No branches or pull requests

6 participants