@@ -17,8 +17,8 @@ toc::[]
17
17
A limit range, defined by a `*LimitRange*` object, enumerates
18
18
xref:../dev_guide/compute_resources.adoc#dev-compute-resources[compute resource
19
19
constraints] in a xref:../dev_guide/projects.adoc#dev-guide-projects[project] at the pod,
20
- container, image and image stream level, and specifies the amount of resources
21
- that a pod, container, image or image stream can consume.
20
+ container, image, image stream, and persistent volume claim level, and specifies the amount of resources
21
+ that a pod, container, image, image stream, or persistent volume claim can consume.
22
22
23
23
All resource create and modification requests are evaluated against each
24
24
`*LimitRange*` object in the project. If the resource violates any of the
@@ -314,6 +314,68 @@ distinguished.
314
314
315
315
// end::admin_limits_image_stream_limits[]
316
316
317
+
318
+ [[claim-limits]]
319
+ === PersistentVolumeClaim Limits
320
+
321
+ // tag::admin_limits_claim_limits[]
322
+ *Supported Resources:*
323
+
324
+ * Storage
325
+
326
+ *Supported Constraints:*
327
+
328
+ Across all persistent volume claims in a project, the following must hold true:
329
+
330
+ .Pod
331
+ [cols="3a,8a",options="header"]
332
+ |===
333
+
334
+ |Constraint |Enforced Behavior
335
+
336
+ |`*Min*`
337
+ |Min[resource] <= claim.spec.resources.requests[resource] (required)
338
+
339
+ |`*Max*`
340
+ |claim.spec.resources.requests[resource] (required) <= Max[resource]
341
+
342
+ [[limit-range-def]]
343
+
344
+ .Limit Range Object Definition
345
+ ====
346
+
347
+ |===
348
+
349
+ [source,json]
350
+ ----
351
+ {
352
+ "apiVersion": "v1",
353
+ "kind": "LimitRange",
354
+ "metadata": {
355
+ "name": "pvcs" <1>
356
+ },
357
+ "spec": {
358
+ "limits": [{
359
+ "type": "PersistentVolumeClaim",
360
+ "min": {
361
+ "storage": "2Gi", <2>
362
+ },
363
+ "max": {
364
+ "storage": "50Gim", <3>
365
+ }
366
+ },
367
+ }]
368
+ }
369
+ }
370
+ ----
371
+ <1> The name of the limit range document.
372
+ <2> The minimum amount of storage that can be requested in a persistent volume claim
373
+ <3> The maximum amount of storage that can be requested in a persistent volume claim
374
+ ====
375
+
376
+ // end::admin_limits_claim_limits[]
377
+
378
+
317
379
[[creating-a-limit-range]]
318
380
== Creating a Limit Range
319
381
0 commit comments