Skip to content

Commit 766a2cd

Browse files
author
Michael Burke
committed
Nodes Clusters docs fixes during ROSA review
1 parent 9d384f4 commit 766a2cd

19 files changed

+153
-82
lines changed

_topic_maps/_topic_map.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2393,6 +2393,9 @@ Topics:
23932393
- Name: Analyzing cluster resource levels
23942394
File: nodes-cluster-resource-levels
23952395
Distros: openshift-enterprise,openshift-origin
2396+
- Name: Configuring a cluster for pods
2397+
File: nodes-cluster-pods-configuring
2398+
Distros: openshift-enterprise,openshift-origin
23962399
- Name: Setting limit ranges
23972400
File: nodes-cluster-limit-ranges
23982401
- Name: Configuring cluster memory to meet container memory and risk requirements

modules/node-tuning-operator-supported-tuned-daemon-plug-ins.adoc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//
33
// * scalability_and_performance/using-node-tuning-operator.adoc
44
// * post_installation_configuration/node-tasks.adoc
5+
// * nodes/nodes/nodes-node-tuning-operator
56

67
[id="supported-tuned-daemon-plug-ins_{context}"]
78
= Supported TuneD daemon plugins
@@ -38,8 +39,8 @@ that is not supported. The following TuneD plugins are currently not supported:
3839
The TuneD bootloader plugin is currently supported on {op-system-first} 8.x worker nodes. For {op-system-base-full} 7.x worker nodes, the TuneD bootloader plugin is currently not supported.
3940
====
4041

41-
See
42-
link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/monitoring_and_managing_system_status_and_performance/customizing-tuned-profiles_monitoring-and-managing-system-status-and-performance#available-tuned-plug-ins_customizing-tuned-profiles[Available
43-
TuneD Plugins] and
44-
link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/monitoring_and_managing_system_status_and_performance/getting-started-with-tuned_monitoring-and-managing-system-status-and-performance[Getting
45-
Started with TuneD] for more information.
42+
.Additional references
43+
44+
* link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/monitoring_and_managing_system_status_and_performance/customizing-tuned-profiles_monitoring-and-managing-system-status-and-performance#available-tuned-plug-ins_customizing-tuned-profiles[Available TuneD Plugins]
45+
46+
* link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/monitoring_and_managing_system_status_and_performance/getting-started-with-tuned_monitoring-and-managing-system-status-and-performance[Getting Started with TuneD]

modules/nodes-cluster-limit-ranges-creating.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ spec:
6464

6565
. Create the object:
6666
+
67+
[source,terminal]
6768
----
6869
$ oc create -f <limit_range_file> -n <project> <1>
6970
----

modules/nodes-cluster-limit-ranges-deleting.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88

99
To remove any active `LimitRange` object to no longer enforce the limits in a project:
1010

11-
. Run the following command:
11+
* Run the following command:
1212
+
13+
[source,terminal]
1314
----
1415
$ oc delete limits <limit_name>
1516
----

modules/nodes-cluster-limit-ranges-viewing.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ You can also use the CLI to view limit range details:
1313
. Get the list of `LimitRange` object defined in the project. For example, for a
1414
project called *demoproject*:
1515
+
16+
[source,terminal]
1617
----
1718
$ oc get limits -n demoproject
1819
----
1920
+
21+
[source,terminal]
2022
----
2123
NAME CREATED AT
2224
resource-limits 2020-07-15T17:14:23Z
@@ -25,10 +27,14 @@ resource-limits 2020-07-15T17:14:23Z
2527
. Describe the `LimitRange` object you are interested in, for example the
2628
`resource-limits` limit range:
2729
+
30+
31+
[source,terminal]
2832
----
2933
$ oc describe limits resource-limits -n demoproject
3034
----
3135
+
36+
37+
[source,terminal]
3238
----
3339
Name: resource-limits
3440
Namespace: demoproject

modules/nodes-cluster-overcommit-node-enforcing.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ If you disable CPU limit enforcement, it is important to understand the impact o
1818

1919
.Prerequisites
2020

21-
. Obtain the label associated with the static `MachineConfigPool` CRD for the type of node you want to configure by entering the following command:
21+
* Obtain the label associated with the static `MachineConfigPool` CRD for the type of node you want to configure by entering the following command:
2222
+
2323
[source,terminal]
2424
----
@@ -50,6 +50,7 @@ metadata:
5050
====
5151
If the label is not present, add a key/value pair such as:
5252
53+
[source,terminal]
5354
----
5455
$ oc label machineconfigpool worker custom-kubelet=small-pods
5556
----

modules/nodes-cluster-overcommit-project-disable.adoc

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,21 @@
77
[id="nodes-cluster-overcommit-project-disable_{context}"]
88
= Disabling overcommitment for a project
99

10-
When enabled, overcommitment can be disabled per-project.
11-
For example, you can allow infrastructure components to be configured independently of overcommitment.
10+
When enabled, overcommitment can be disabled per-project. For example, you can allow infrastructure components to be configured independently of overcommitment.
1211

1312
.Procedure
1413

1514
To disable overcommitment in a project:
1615

17-
. Edit the project object file
18-
19-
. Add the following annotation:
16+
. Edit the namespace object to add the following annotation:
2017
+
2118
[source,yaml]
2219
----
23-
quota.openshift.io/cluster-resource-override-enabled: "false"
24-
----
25-
26-
. Create the project object:
27-
+
28-
[source,terminal]
29-
----
30-
$ oc create -f <file-name>.yaml
20+
apiVersion: v1
21+
kind: Namespace
22+
metadata:
23+
annotations:
24+
quota.openshift.io/cluster-resource-override-enabled: "false" <1>
25+
# ...
3126
----
27+
<1> Setting this annotation to `false` disables overcommit for this namespace.

modules/nodes-cluster-resource-configure-jdk.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ override this behavior, especially if a container memory limit is also set.
3636

3737
There are at least two ways the above can be achieved:
3838

39-
. If the container memory limit is set and the experimental options are
39+
* If the container memory limit is set and the experimental options are
4040
supported by the JVM, set `-XX:+UnlockExperimentalVMOptions
4141
-XX:+UseCGroupMemoryLimitForHeap`.
4242
+
@@ -48,7 +48,7 @@ The `UseCGroupMemoryLimitForHeap` option has been removed in JDK 11. Use `-XX:+U
4848
This sets `-XX:MaxRAM` to the container memory limit, and the maximum heap size
4949
(`-XX:MaxHeapSize` / `-Xmx`) to 1/`-XX:MaxRAMFraction` (1/4 by default).
5050

51-
. Directly override one of `-XX:MaxRAM`, `-XX:MaxHeapSize` or `-Xmx`.
51+
* Directly override one of `-XX:MaxRAM`, `-XX:MaxHeapSize` or `-Xmx`.
5252
+
5353
This option involves hard-coding a value, but has the advantage of allowing a
5454
safety margin to be calculated.

modules/nodes-cluster-resource-configure-oom.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ follows:
3232
[source,terminal]
3333
----
3434
$ grep '^oom_kill ' /sys/fs/cgroup/memory/memory.oom_control
35+
----
36+
+
37+
.Example output
38+
[source,terminal]
39+
----
3540
oom_kill 0
3641
----
3742
@@ -68,6 +73,11 @@ The `137` code indicates the container process exited with code 137, indicating
6873
[source,terminal]
6974
----
7075
$ grep '^oom_kill ' /sys/fs/cgroup/memory/memory.oom_control
76+
----
77+
+
78+
.Example output
79+
[source,terminal]
80+
----
7181
oom_kill 1
7282
----
7383
+

modules/nodes-cluster-resource-configure-request-limit.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ within a pod should use the Downward API.
1212
.Procedure
1313

1414
. Configure the pod to add the `MEMORY_REQUEST` and `MEMORY_LIMIT` stanzas:
15+
16+
.. Create a YAML file similar to the following:
1517
+
1618
[source,yaml]
1719
----
@@ -46,13 +48,15 @@ spec:
4648
<1> Add this stanza to discover the application memory request value.
4749
<2> Add this stanza to discover the application memory limit value.
4850

49-
. Create the pod:
51+
.. Create the pod by running the following command:
5052
+
5153
[source,terminal]
5254
----
5355
$ oc create -f <file-name>.yaml
5456
----
5557

58+
.Verification
59+
5660
. Access the pod using a remote shell:
5761
+
5862
[source,terminal]

0 commit comments

Comments
 (0)