Skip to content

Commit 6f36f7d

Browse files
authored
Merge pull request #62600 from mburke5678/nodes-nodes-fix-errors
Nodes Nodes docs fixes during ROSA review
2 parents 095313a + 8a79dd8 commit 6f36f7d

19 files changed

+41
-14
lines changed

_topic_maps/_topic_map.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2352,7 +2352,7 @@ Topics:
23522352
File: nodes-nodes-resources-configuring
23532353
- Name: Allocating specific CPUs for nodes in a cluster
23542354
File: nodes-nodes-resources-cpus
2355-
- Name: Configuring the TLS security profile for the kubelet
2355+
- Name: Enabling TLS security profiles for the kubelet
23562356
File: nodes-nodes-tls
23572357
Distros: openshift-enterprise,openshift-origin
23582358
# - Name: Monitoring for problems in your nodes

modules/creating-an-infra-node.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Module included in the following assemblies:
22
//
33
// * post_installation_configuration/cluster-tasks.adoc
4+
// * machine_management/creating-infrastructure-machinesets.adoc
5+
// * nodes/nodes/nodes-nodes-creating-infrastructure-nodes.adoc
46

57
:_content-type: PROCEDURE
68
[id="creating-an-infra-node_{context}"]
@@ -62,10 +64,9 @@ apiVersion: config.openshift.io/v1
6264
kind: Scheduler
6365
metadata:
6466
name: cluster
65-
...
6667
spec:
6768
defaultNodeSelector: topology.kubernetes.io/region=us-east-1 <1>
68-
...
69+
# ...
6970
----
7071
<1> This example node selector deploys pods on nodes in the `us-east-1` region by default.
7172

modules/nodes-nodes-configuring-graceful-shutdown.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// * nodes/nodes-nodes-graceful-shutdown
33

44
:_content-type: PROCEDURE
5-
[id="nodes-nodes-activating-graceful-shutdown_{context}"]
5+
[id="nodes-nodes-configuring-graceful-shutdown_{context}"]
66
= Configuring graceful node shutdown
77

88
To configure graceful node shutdown, create a `KubeletConfig` custom resource (CR) to specify a shutdown grace period for pods on a set of nodes. The graceful node shutdown feature minimizes interruption to workloads that run on these pods.
@@ -35,6 +35,7 @@ spec:
3535
kubeletConfig:
3636
shutdownGracePeriod: "3m" <2>
3737
shutdownGracePeriodCriticalPods: "2m" <3>
38+
#...
3839
----
3940
<1> This example applies shutdown grace periods to nodes with the `worker` role.
4041
<2> Define a time period for regular pods to shut down.
@@ -109,7 +110,7 @@ $ cat /etc/kubernetes/kubelet.conf
109110
.Example output
110111
[source,terminal]
111112
----
112-
...
113+
#...
113114
“memorySwap”: {},
114115
“containerLogMaxSize”: “50Mi”,
115116
“logging”: {
@@ -124,6 +125,7 @@ $ cat /etc/kubernetes/kubelet.conf
124125
“shutdownGracePeriod”: “10m0s”, <1>
125126
“shutdownGracePeriodCriticalPods”: “3m0s”
126127
}
128+
#...
127129
----
128130
+
129131
<1> Ensure that the log messages for `shutdownGracePeriodRequested` and `shutdownGracePeriodCriticalPods` match the values set in the `KubeletConfig` CR.

modules/nodes-nodes-garbage-collection-configuring.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ metadata:
5050
labels:
5151
pools.operator.machineconfiguration.openshift.io/worker: "" <1>
5252
name: worker
53+
#...
5354
----
5455
<1> The label appears under Labels.
5556
+
@@ -105,6 +106,7 @@ spec:
105106
imageMinimumGCAge: 5m <8>
106107
imageGCHighThresholdPercent: 80 <9>
107108
imageGCLowThresholdPercent: 75 <10>
109+
#...
108110
----
109111
<1> Name for the object.
110112
<2> Specify the label from the machine config pool.

modules/nodes-nodes-kernel-arguments.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ spec:
117117
kernelArguments:
118118
- enforcing=0 <3>
119119
systemd.unified_cgroup_hierarchy=0 <4>
120+
#...
120121
----
121122
+
122123
<1> Applies the new kernel argument only to worker nodes.

modules/nodes-nodes-managing-about.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ spec:
6666
systemReserved:
6767
cpu: 2000m
6868
memory: 1Gi
69+
#...
6970
----
7071
<1> Assign a name to CR.
7172
<2> Specify the label to apply the configuration change, this is the label you added to the machine config pool.

modules/nodes-nodes-managing-max-pods-proc.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// * post_installation_configuration/node-tasks.adoc
55

66
:_content-type: PROCEDURE
7-
[id="nodes-nodes-managing-max-pods-about_{context}"]
7+
[id="nodes-nodes-managing-max-pods-proc_{context}"]
88
= Configuring the maximum number of pods per node
99

1010
Two parameters control the maximum number of pods that can be scheduled to a node: `podsPerCore` and `maxPods`. If you use both options, the lower of the two limits the number of pods on a node.
@@ -38,6 +38,7 @@ metadata:
3838
labels:
3939
pools.operator.machineconfiguration.openshift.io/worker: "" <1>
4040
name: worker
41+
#...
4142
----
4243
<1> The label appears under Labels.
4344
+
@@ -68,6 +69,7 @@ spec:
6869
kubeletConfig:
6970
podsPerCore: 10 <3>
7071
maxPods: 250 <4>
72+
#...
7173
----
7274
<1> Assign a name to CR.
7375
<2> Specify the label from the machine config pool.

modules/nodes-nodes-rebooting-affinity.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ spec:
3939
values:
4040
- default
4141
topologyKey: kubernetes.io/hostname
42+
#...
4243
----
4344
<1> Stanza to configure pod anti-affinity.
4445
<2> Defines a preferred rule.

modules/nodes-nodes-resources-configuring-auto.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ metadata:
4141
labels:
4242
pools.operator.machineconfiguration.openshift.io/worker: "" <1>
4343
name: worker
44-
...
44+
#...
4545
----
4646
<1> The label appears under `Labels`.
4747
+
@@ -70,6 +70,7 @@ spec:
7070
machineConfigPoolSelector:
7171
matchLabels:
7272
pools.operator.machineconfiguration.openshift.io/worker: "" <3>
73+
#...
7374
----
7475
<1> Assign a name to CR.
7576
<2> Add the `autoSizingReserved` parameter set to `true` to allow {product-title} to automatically determine and allocate the `system-reserved` resources on the nodes associated with the specified label. To disable automatic allocation on those nodes, set this parameter to `false`.

modules/nodes-nodes-resources-configuring-setting.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ metadata:
4545
labels:
4646
pools.operator.machineconfiguration.openshift.io/worker: "" <1>
4747
name: worker
48+
#...
4849
----
4950
<1> The label appears under Labels.
5051
+
@@ -76,6 +77,7 @@ spec:
7677
systemReserved: <3>
7778
cpu: 1000m
7879
memory: 1Gi
80+
#...
7981
----
8082
<1> Assign a name to CR.
8183
<2> Specify the label from the machine config pool.

0 commit comments

Comments
 (0)