Skip to content

Commit a82dc85

Browse files
committed
Adding YAML codeblock formatting to huge pages example
1 parent 6c0e976 commit a82dc85

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed

modules/cnf-best-practices-hugepages.adoc

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,17 @@ For more information, see
77
link:https://docs.openshift.com/container-platform/latest/scalability_and_performance/cnf-low-latency-tuning.html#cnf-configuring-huge-pages_cnf-master[Configuring huge pages].
88

99

10-
To request hugepages, pods must supply the following within the pod.spec for each container:
11-
10+
To request hugepages, pods must supply the following within the `pod.spec` for each container:
1211

12+
[source,yaml]
13+
----
1314
resources:
14-
15-
limits:
16-
17-
hugepages-2Mi: 100Mi
18-
19-
memory: "1Gi"
20-
21-
cpu: "1"
22-
23-
requests:
24-
25-
hugepages-2Mi: 100Mi
26-
27-
memory: "1Gi"
28-
29-
cpu: "1"
30-
15+
limits:
16+
hugepages-2Mi: 100Mi
17+
memory: "1Gi"
18+
cpu: "1"
19+
requests:
20+
hugepages-2Mi: 100Mi
21+
memory: "1Gi"
22+
cpu: "1"
23+
----

0 commit comments

Comments
 (0)