Skip to content

Commit 8d50a4c

Browse files
committed
Add Code blocks in limit-storage-consumption.md
* Add Code blocks in the Markdown spec to make it easy to read. Signed-off-by: ydFu <[email protected]>
1 parent f8fd6d9 commit 8d50a4c

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

content/en/docs/tasks/administer-cluster/limit-storage-consumption.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ The following resources are used in the demonstration: [ResourceQuota](/docs/con
1212
and [PersistentVolumeClaim](/docs/concepts/storage/persistent-volumes/).
1313

1414

15-
1615
## {{% heading "prerequisites" %}}
1716

1817

@@ -41,7 +40,7 @@ the values set by the admin.
4140

4241
In this example, a PVC requesting 10Gi of storage would be rejected because it exceeds the 2Gi max.
4342

44-
```
43+
```yaml
4544
apiVersion: v1
4645
kind: LimitRange
4746
metadata:
@@ -67,7 +66,7 @@ In this example, a 6th PVC in the namespace would be rejected because it exceeds
6766
a 5Gi maximum quota when combined with the 2Gi max limit above, cannot have 3 PVCs where each has 2Gi. That would be 6Gi requested
6867
for a namespace capped at 5Gi.
6968
70-
```
69+
```yaml
7170
apiVersion: v1
7271
kind: ResourceQuota
7372
metadata:
@@ -78,16 +77,10 @@ spec:
7877
requests.storage: "5Gi"
7978
```
8079
81-
82-
8380
<!-- discussion -->
8481
8582
## Summary
8683
8784
A limit range can put a ceiling on how much storage is requested while a resource quota can effectively cap the storage
8885
consumed by a namespace through claim counts and cumulative storage capacity. The allows a cluster-admin to plan their
8986
cluster's storage budget without risk of any one project going over their allotment.
90-
91-
92-
93-

0 commit comments

Comments
 (0)