@@ -42,8 +42,8 @@ work like this:
42
42
support for making this mandatory via ACLs is planned.
43
43
- Users put [ compute resource limits] ( ../user-guide/compute-resources.md ) on their pods.
44
44
- The administrator creates a Resource Quota for each namespace.
45
- - If users exceed the limits specified in the Resource Quota in a namespace, they are blocked
46
- from creating more pods in that namespace. The POST of the pod will fail with HTTP status
45
+ - If creating a pod would cause the namespace to exceed any of the limits specified in the
46
+ the Resource Quota for that namespace, then the request will fail with HTTP status
47
47
code ` 403 FORBIDDEN ` .
48
48
- If quota is enabled in a namespace and the user does not specify limits on the pod for each
49
49
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:
56
56
- Limit the "testing" namespace to using 1 core and 1GiB RAM. Let the "production" namespace
57
57
use any amount.
58
58
59
- In the case where the total capacity of the cell is less than the sum of the quotas of the namespaces,
59
+ In the case where the total capacity of the cluster is less than the sum of the quotas of the namespaces,
60
60
there may be contention for resources. This is handled on a first-come-first-served basis.
61
61
62
62
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
80
80
| ------------ | ----------- |
81
81
| cpu | Total cpu limits of containers |
82
82
| memory | Total memory limits of containers
83
- | ` example.com/customresource ` | Total of ` resources.limits."example.com/customresource" ` of containers |
84
83
85
84
For example, ` cpu ` quota sums up the ` resources.limits.cpu ` fields of every
86
85
container of every pod in the namespace, and enforces a maximum on that sum.
87
86
88
- Any resource that is not part of core Kubernetes must follow the resource naming convention prescribed by Kubernetes.
89
-
90
- This means the resource must have a fully-qualified name (i.e. mycompany.org/shinynewresource)
91
-
92
-
93
87
## Object Count Quota
94
88
95
89
The number of objects of a given type can be restricted. The following types
0 commit comments