Skip to content

Commit 5be11b2

Browse files
authored
Merge pull request #8464 from ahardin-rh/enterprise-3.9
[enterprise-3.9]Updated max pod memory information
2 parents dc3bcc4 + ff077e4 commit 5be11b2

File tree

2 files changed

+31
-22
lines changed

2 files changed

+31
-22
lines changed

admin_guide/limits.adoc

+14-11
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,18 @@ default value is applied to the resource.
3131
[[limit-range-def]]
3232
// tag::admin_limits_sample_definitions[]
3333

34-
.Limit Range Object Definition
34+
ifdef::openshift-online[]
35+
[IMPORTANT]
36+
====
37+
For {product-title} Pro, the maximum pod memory is 3Gi. The minimum pod or
38+
container memory that you can specify is 100Mi.
39+
40+
For {product-title} Starter, the maximum pod memory is 1Gi. The minimum pod or
41+
container memory that you can specify is 200Mi.
3542
====
43+
endif::[]
44+
45+
.Core Limit Range Object Definition
3646

3747
[source,yaml]
3848
----
@@ -84,15 +94,14 @@ specified.
8494
<12> The default amount of CPU that a container will request to use if not specified.
8595
<13> The default amount of memory that a container will request to use if not specified.
8696
<14> The maximum amount of CPU burst that a container can make as a ratio of its limit over request.
87-
====
8897

89-
For more information on how CPU and memory are measured, see xref:../dev_guide/compute_resources.adoc#dev-compute-resources[Compute Resources].
98+
For more information on how CPU and memory are measured, see xref:../dev_guide/compute_resources.adoc#dev-compute-resources[Compute Resources].
9099

91100
// end::admin_limits_sample_definitions[]
92101

93102
// tag::admin_limits_sample_definitions_2[]
94103
.{product-title} Limit Range Object Definition
95-
====
104+
96105
[source,yaml]
97106
----
98107
apiVersion: "v1"
@@ -112,7 +121,7 @@ spec:
112121
<1> The maximum size of an image that can be pushed to an internal registry.
113122
<2> The maximum number of unique image tags per image stream's spec.
114123
<3> The maximum number of unique image references per image stream's status.
115-
====
124+
116125
// end::admin_limits_sample_definitions_2[]
117126

118127
Both core and {product-title} resources can be specified in just one limit range
@@ -346,7 +355,6 @@ Across all persistent volume claims in a project, the following must hold true:
346355
[[limit-range-obj-def]]
347356

348357
.Limit Range Object Definition
349-
====
350358

351359
[source,json]
352360
----
@@ -373,7 +381,6 @@ Across all persistent volume claims in a project, the following must hold true:
373381
<1> The name of the limit range object.
374382
<2> The minimum amount of storage that can be requested in a persistent volume claim
375383
<3> The maximum amount of storage that can be requested in a persistent volume claim
376-
====
377384

378385
// end::admin_limits_claim_limits[]
379386

@@ -400,18 +407,15 @@ You can also use the CLI to view limit range details:
400407
. First, get the list of limit ranges defined in the project. For example, for a
401408
project called *demoproject*:
402409
+
403-
====
404410
----
405411
$ oc get limits -n demoproject
406412
NAME AGE
407413
resource-limits 6d
408414
----
409-
====
410415

411416
. Then, describe the limit range you are interested in, for example the
412417
*resource-limits* limit range:
413418
+
414-
====
415419
----
416420
$ oc describe limits resource-limits -n demoproject
417421
Name: resource-limits
@@ -426,7 +430,6 @@ openshift.io/Image storage - 1Gi -
426430
openshift.io/ImageStream openshift.io/image - 12 - - -
427431
openshift.io/ImageStream openshift.io/image-tags - 10 - - -
428432
----
429-
====
430433
// end::admin_limits_viewing[]
431434

432435
[[deleting-limits]]

dev_guide/compute_resources.adoc

+17-11
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,19 @@ compute resources that are used in your project. This helps cluster
1919
administrators better manage and allocate resources across all projects, and
2020
ensure that no projects are using more than is appropriate for the cluster size.
2121

22+
ifdef::openshift-origin,openshift-enterprise,openshift-dedicated[]
2223
As a developer, you can also
2324
set xref:dev-compute-resources[requests and limits on compute resources] at the
2425
pod and container level.
26+
endif::[]
27+
28+
ifdef::openshift-online[]
29+
[IMPORTANT]
30+
====
31+
{product-title} Pro project owners can change quotas for their project, but not
32+
limit ranges. {product-title} Starter users cannot modify quotas or limit ranges.
33+
====
34+
endif::[]
2535

2636
The following sections help you understand how to check on your quota and limit
2737
range settings, what sorts of things they can constrain, and how you can request
@@ -123,7 +133,6 @@ wanted to use 1/10 of a single core, it would be represented as 100m.
123133
Memory is measured in bytes. In addition, it may be used with SI suffices (E, P,
124134
T, G, M, K) or their power-of-two-equivalents (Ei, Pi, Ti, Gi, Mi, Ki).
125135

126-
====
127136
[source,yaml]
128137
----
129138
apiVersion: v1
@@ -140,11 +149,10 @@ spec:
140149
cpu: 200m <3>
141150
memory: 400Mi <4>
142151
----
143-
<1> The container requests 100m cpu.
152+
<1> The container requests 100m CPU.
144153
<2> The container requests 200Mi memory.
145-
<3> The container limits 200m cpu.
154+
<3> The container limits 200m CPU.
146155
<4> The container limits 400Mi memory.
147-
====
148156

149157
[[dev-cpu-requests]]
150158
=== CPU Requests
@@ -173,7 +181,6 @@ endif::[]
173181

174182
To view compute resources for a pod:
175183

176-
====
177184
----
178185
$ oc describe pod nginx-tfjxt
179186
Name: nginx-tfjxt
@@ -205,7 +212,6 @@ Containers:
205212
Restart Count: 0
206213
Environment Variables:
207214
----
208-
====
209215

210216
[[dev-cpu-limits]]
211217
=== CPU Limits
@@ -302,27 +308,27 @@ are no more *BestEffort* or *Burstable* containers on the system.
302308

303309
To specify compute resources via the CLI:
304310

305-
====
306-
ifndef::openshift-online[]
311+
ifdef::openshift-origin,openshift-enterprise,openshift-dedicated[]
307312
----
308313
$ oc run nginx --image=nginx --limits=cpu=200m,memory=400Mi --requests=cpu=100m,memory=200Mi
309314
----
310315
endif::[]
316+
311317
ifdef::openshift-online[]
312318
----
313319
$ oc run nginx --image=nginx --limits=memory=400Mi
314320
----
315321
endif::[]
316-
====
322+
317323

318324
ifdef::openshift-origin,openshift-enterprise[]
319325
[[opaque-integer-resources-dev]]
320326
=== Opaque Integer Resources
321327

322328
include::admin_guide/opaque_integer_resources.adoc[tag=oir-intro]
323329

324-
The cluster administrator is usually responsible for creating the resources and making them available.
325-
For more information on creating opaque integer resources, see xref:../admin_guide/opaque_integer_resources.adoc#admin-guide-opaque-resources[Opaque Integer Resources] in the Administrator Guide.
330+
The cluster administrator is usually responsible for creating the resources and making them available.
331+
For more information on creating opaque integer resources, see xref:../admin_guide/opaque_integer_resources.adoc#admin-guide-opaque-resources[Opaque Integer Resources] in the Administrator Guide.
326332

327333
To consume an opaque integer resource in a pod, edit the pod to
328334
include the name of the opaque resource as a key in the `spec.containers[].resources.requests` field.

0 commit comments

Comments
 (0)