Skip to content

Conversation

@derekwaynecarr
Copy link
Member

Turn on the admission control plug-ins from upstream Kubernetes that control quota usage.

This change will cause LimitRange and ResourceQuota to be enforced on admission.

Note: If and only if you add a ResourceQuota to a project, all create and update operations in that project will not work until #1047 is merged. This is because the manager needs to update actual usage stats before new requests are accepted by these plug-ins.

Review please @jwforres @smarterclayton @deads2k

@smarterclayton
Copy link
Contributor

Do we want this enabled by default?

@derekwaynecarr
Copy link
Member Author

Yes - it's a no-op when ResourceQuota and LimitRange are not used, so there is no reason to not have them on.

@derekwaynecarr
Copy link
Member Author

Well, let me rephrase, it will be a no-op after my change to upstream makes these two plug-ins cache backed. But I am waiting for kubernetes/kubernetes#4453 to get merged to send the follow-on PR.

@smarterclayton smarterclayton modified the milestone: 0.4.0 (beta2) Feb 20, 2015
@derekwaynecarr
Copy link
Member Author

The upstream change to make the admission control plug-in cache based is here:
kubernetes/kubernetes#4749

Once we rebase on a version with that change, we can enable the plug-in by default.

@smarterclayton
Copy link
Contributor

Rebase

@smarterclayton smarterclayton modified the milestones: 0.4.0 (beta2), 0.5.0 Mar 4, 2015
@derekwaynecarr derekwaynecarr force-pushed the enable_quota_on_admission branch from 7afe1c7 to a23f926 Compare March 5, 2015 14:23
@derekwaynecarr
Copy link
Member Author

Rebased.

@deads2k @liggitt - this is easier to follow now with the new code split in start.go.

When starting Kube, I start the admission control plug-ins that we require in base Kube if we were to run on Kube. Right now for Origin based master, we just run the AlwaysAdmit until we have our unique plug-ins that need to handle our own custom fields on LimitRange (i.e. layer size, etc.)

Copy link
Contributor

Choose a reason for hiding this comment

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

Is AlwaysAdmit needed at the end of the chain? I thought admission plugins only gave errors, so if it made it to the end of the chain without an error, it was implicitly accepted

Copy link
Member Author

Choose a reason for hiding this comment

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

You are correct.

Updating.

@derekwaynecarr derekwaynecarr force-pushed the enable_quota_on_admission branch from a23f926 to 9f48fd3 Compare March 5, 2015 15:12
@liggitt
Copy link
Contributor

liggitt commented Mar 5, 2015

LGTM

@smarterclayton
Copy link
Contributor

[merge]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_openshift3/1133/) (Image: devenv-fedora_997)

@openshift-bot
Copy link
Contributor

Evaluated for origin up to 9f48fd3

openshift-bot pushed a commit that referenced this pull request Mar 9, 2015
@openshift-bot openshift-bot merged commit 3f262bd into openshift:master Mar 9, 2015
sjenning pushed a commit to sjenning/origin that referenced this pull request Jul 30, 2018
…scon-mounts-bp-3.8

[3.8] Add node system-container ADDLT_MOUNTS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants