Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
0b327627
Commit
0b327627
authored
Jul 20, 2015
by
Eric Tune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements to quota doc.
Address review comments in #11487
parent
b4fb9387
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
resource-quota.md
docs/admin/resource-quota.md
+3
-9
No files found.
docs/admin/resource-quota.md
View file @
0b327627
...
...
@@ -42,8 +42,8 @@ work like this:
support for making this mandatory via ACLs is planned.
-
Users put
[
compute resource limits
](
../user-guide/compute-resources.md
)
on their pods.
-
The administrator creates a Resource Quota for each namespace.
-
If
users exceed the limits specified in the Resource Quota in a namespace, they are blocked
from creating more pods in that namespace. The POST of the pod
will fail with HTTP status
-
If
creating a pod would cause the namespace to exceed any of the limits specified in the
the Resource Quota for that namespace, then the request
will fail with HTTP status
code
`403 FORBIDDEN`
.
-
If quota is enabled in a namespace and the user does not specify limits on the pod for each
of the resources for which quota is enabled, then the POST of the pod will fail with HTTP
...
...
@@ -56,7 +56,7 @@ Examples of policies that could be created using namespaces and quotas are:
-
Limit the "testing" namespace to using 1 core and 1GiB RAM. Let the "production" namespace
use any amount.
In the case where the total capacity of the c
ell
is less than the sum of the quotas of the namespaces,
In the case where the total capacity of the c
luster
is less than the sum of the quotas of the namespaces,
there may be contention for resources. This is handled on a first-come-first-served basis.
Neither contention nor changes to quota will affect already-running pods.
...
...
@@ -80,16 +80,10 @@ in a namespace can be limited. The following compute resource types are support
| ------------ | ----------- |
| cpu | Total cpu limits of containers |
| memory | Total memory limits of containers
|
`example.com/customresource`
| Total of
`resources.limits."example.com/customresource"`
of containers |
For example,
`cpu`
quota sums up the
`resources.limits.cpu`
fields of every
container of every pod in the namespace, and enforces a maximum on that sum.
Any resource that is not part of core Kubernetes must follow the resource naming convention prescribed by Kubernetes.
This means the resource must have a fully-qualified name (i.e. mycompany.org/shinynewresource)
## Object Count Quota
The number of objects of a given type can be restricted. The following types
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment