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 requirements based scheduling. #1946

Merged
merged 1 commit into from
Oct 27, 2014

Conversation

brendandburns
Copy link
Contributor

Adds scheduling constraints. See #367 for more details.

@@ -367,6 +367,8 @@ type Pod struct {
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
DesiredState PodState `json:"desiredState,omitempty" yaml:"desiredState,omitempty"`
CurrentState PodState `json:"currentState,omitempty" yaml:"currentState,omitempty"`
// NodeSelector is a selector which must be true for the pod to fit on a node
NodeSelector map[string]string `json:"nodeSelector,omitempty" yaml:"nodeSelector,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are you going to use this selector to accomplish? @erictune and I were talking about something similar based on the presence of a trust relationship in the auth stuff.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look at the changes to predicates. This is so that we can do constraint/requirements based scheduling.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #367.

@bgrant0607
Copy link
Member

Is there a reason why you aren't adding this to the default predicate list?

@brendandburns
Copy link
Contributor Author

I'd rather submit the predicate first, and then activate it in a different PR. That way if it breaks, it's easier to just rollback the activation, rather than the entire PR.

Other comment addressed.

Please re-check.

Thanks!
--brendan

@bgrant0607
Copy link
Member

LGTM

bgrant0607 added a commit that referenced this pull request Oct 27, 2014
Add requirements based scheduling.
@bgrant0607 bgrant0607 merged commit 80c1464 into kubernetes:master Oct 27, 2014
@bgrant0607 bgrant0607 added the sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling. label Oct 27, 2014
bertinatto pushed a commit to bertinatto/kubernetes that referenced this pull request May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants