Quotas
Each tenant has a quota tier for CPU, memory and storage. The tier covers all of the tenant’s namespaces together, so splitting work across namespaces does not split it.
Tier numbers
Section titled “Tier numbers”Kestrel tenants start at standard.
| Tier | requests.cpu, limits.cpu | requests.memory, limits.memory | requests.storage |
|---|---|---|---|
| sandbox | 2 | 4Gi | 10Gi |
| standard | 8 | 16Gi | 50Gi |
| premium | 32 | 64Gi | 200Gi |
| custom | set per tenant | set per tenant | set per tenant |
Every container’s requests and limits and every PVC’s storage request count toward the tier, whatever the workload actually uses. To change tier, see Requesting quota changes.
Insufficient cpu or Insufficient memory in Pod events means no node has room. That is cluster capacity, not your quota.
Reading your allocation
Section titled “Reading your allocation”Your tier is set when RCS provisions the tenant. Ask RCS for your tier or your current usage; you can’t read either with kubectl yet:
kubectl describe resourcepool <tenant>returnsForbidden. The ResourcePool that will hold the tenant-wide ceiling is readable only by RCS.- Each namespace has a ResourceQuota named
capsule-pool-<tenant>whoseUsedandHardcolumns are empty. It is the placeholder for that ceiling and limits nothing.
Default requests and limits
Section titled “Default requests and limits”Every tenant namespace has a LimitRange named default-limits. It fills in the values a container doesn’t set:
| CPU | Memory | |
|---|---|---|
| Default request | 100m | 128Mi |
| Default limit | 1 | 1Gi |
A container that requests more than the default limit but sets no limit of its own gets the default limit, which is then below its request, so the Pod is rejected:
spec.containers[0].resources.requests: Invalid value: "2": must be less than or equal to cpu limit of 1For a Deployment or Job the error appears in the ReplicaSet’s or Job’s events. Set limits as well as requests on real workloads.
You can’t create LimitRange, ResourceQuota or ResourcePoolClaim objects.