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

Add NamespaceSelector to pod affinity spec #97203

Closed
6 tasks done
ahg-g opened this issue Dec 10, 2020 · 4 comments
Closed
6 tasks done

Add NamespaceSelector to pod affinity spec #97203

ahg-g opened this issue Dec 10, 2020 · 4 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling.

Comments

@ahg-g
Copy link
Member

ahg-g commented Dec 10, 2020

What would you like to be added:
Pod affinity is currently scoped to the pod namespace by default, but users could specify a list of namespaces as well.

We are proposing to add a namespaceSelector *metav1.LabelSelector so that it is easier for users to specify the set of namespaces that pod affinity applies to without explicitly listing them.

Why is this needed:
Makes it possible to specify patterns of namespaces that the pod affinity constraints applies to. This is especially useful when trying to force 1:1 pod to node placement for example across namespaces.

/sig scheduling

@ahg-g ahg-g added the kind/feature Categorizes issue or PR as related to a new feature. label Dec 10, 2020
@k8s-ci-robot k8s-ci-robot added sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Dec 10, 2020
@k8s-ci-robot
Copy link
Contributor

@ahg-g: This issue is currently awaiting triage.

If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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.

@SataQiu
Copy link
Member

SataQiu commented Dec 13, 2020

/cc

@ahg-g
Copy link
Member Author

ahg-g commented Apr 26, 2021

/close

@k8s-ci-robot
Copy link
Contributor

@ahg-g: Closing this issue.

In response to this:

/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. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling.
Projects
None yet
Development

No branches or pull requests

3 participants