summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKubernetes Submit Queue <k8s-merge-robot@users.noreply.github.com>2016-10-12 20:26:59 -0700
committerGitHub <noreply@github.com>2016-10-12 20:26:59 -0700
commitc81fec4437f75c4235ae2bfd4dafc484abca43d5 (patch)
treeb14b6fac211052a3623cddb5801ba02ae35bcc1d
parentbf5cb84fa95379462fb0934686e415d0a61745f2 (diff)
parent1a5d6cfb10d7b9338ac8b7d41ab171785603cd22 (diff)
Merge pull request #30145 from markturansky/limit_range_pvc
Automatic merge from submit-queue Add PVC storage to LimitRange This PR adds the ability to add a LimitRange to a namespace that enforces min/max on `pvc.Spec.Resources.Requests["storage"]`. @derekwaynecarr @abhgupta @kubernetes/sig-storage Examples forthcoming. ```release-note pvc.Spec.Resources.Requests min and max can be enforced with a LimitRange of type "PersistentVolumeClaim" in the namespace ```
-rw-r--r--admission_control_limit_range.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/admission_control_limit_range.md b/admission_control_limit_range.md
index 27637769..aa0134b4 100644
--- a/admission_control_limit_range.md
+++ b/admission_control_limit_range.md
@@ -47,6 +47,7 @@ as part of admission control.
4. Ability to specify default resource limits for a container
5. Ability to specify default resource requests for a container
6. Ability to enforce a ratio between request and limit for a resource.
+7. Ability to enforce min/max storage requests for persistent volume claims
## Data Model
@@ -209,6 +210,23 @@ Across all containers in pod, the following must hold true
| Max | Limit (required) <= Max |
| LimitRequestRatio | LimitRequestRatio <= ( Limit (required, non-zero) / Request (non-zero) ) |
+**Type: PersistentVolumeClaim**
+
+Supported Resources:
+
+1. storage
+
+Supported Constraints:
+
+Across all claims in a namespace, the following must hold true:
+
+| Constraint | Behavior |
+| ---------- | -------- |
+| Min | Min >= Request (required) |
+| Max | Max <= Request (required) |
+
+Supported Defaults: None. Storage is a required field in `PersistentVolumeClaim`, so defaults are not applied at this time.
+
## Run-time configuration
The default ```LimitRange``` that is applied via Salt configuration will be