You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/rosa-create-objects.adoc
+34-4Lines changed: 34 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -645,12 +645,19 @@ $ rosa create ingress --cluster=mycluster --label-match=foo=bar,bar=baz
645
645
[id="rosa-create-kubeletconfig_{context}"]
646
646
== create kubeletconfig
647
647
648
-
Create a custom `KubeletConfig` object for the cluster.
648
+
Create a custom `KubeletConfig` object to allow custom configuration of nodes in a machine pool. For {product-title} clusters, these settings are cluster-wide. For {hcp-title-first} clusters, each machine pool can be configured differently.
649
+
//TODO OSDOCS-10439: Add conditions back when HCP and Classic are published separately
650
+
// ifdef::openshift-rosa-classic[]
651
+
// cluster.
652
+
// endif::openshift-rosa-classic[]
653
+
// ifdef::openshift-rosa-hcp[]
654
+
// machine pool.
655
+
// endif::openshift-rosa-hcp[]
649
656
650
657
.Syntax
651
658
[source,terminal]
652
659
----
653
-
$ rosa create kubeletconfig --cluster=<cluster_name|cluster_id> --pod-pids-limit=<number> [flags]
660
+
$ rosa create kubeletconfig --cluster=<cluster_name|cluster_id> --name=<kubeletconfig_name> --pod-pids-limit=<number> [flags]
654
661
----
655
662
656
663
.Flags
@@ -659,10 +666,27 @@ $ rosa create kubeletconfig --cluster=<cluster_name|cluster_id> --pod-pids-limit
659
666
|Option |Definition
660
667
661
668
|--pod-pids-limit <number>
662
-
|Required. The maximum number of PIDs for the cluster.
669
+
a|Required. The maximum number of PIDs for each node in the machine pool associated with the `KubeletConfig` object.
670
+
//TODO OSDOCS-10439: Add conditions back when HCP and Classic are published separately
671
+
// ifdef::openshift-rosa-classic[]
672
+
// cluster.
673
+
// endif::openshift-rosa-classic[]
674
+
// ifdef::openshift-rosa-hcp[]
675
+
// machine pool associated with the `KubeletConfig` object.
676
+
// endif::openshift-rosa-hcp[]
663
677
664
678
a|-c, --cluster <cluster_name>\|<cluster_id>
665
-
|Required. The name or ID of the cluster for which the `KubeletConfig` object will be created.
679
+
|Required. The name or ID of the cluster in which to create the `KubeletConfig` object.
680
+
681
+
|--name
682
+
a| Required for {hcp-title-first} clusters. Optional for {product-title}, as there is only one `KubeletConfig` for the cluster. Specifies a name for the `KubeletConfig` object.
683
+
//TODO OSDOCS-10439: Add conditions back when HCP and Classic are published separately
|The instance type (string) that should be used. Default: `m5.xlarge`
704
728
729
+
//TODO OSDOCS-10439: Add conditions back when HCP and Classic are published separately
730
+
//ifdef::openshift-rosa-hcp[]
731
+
a|--kubelet-configs <kubeletconfig_name>
732
+
| For {hcp-title-first} clusters, the names of any `KubeletConfig` objects to apply to nodes in a machine pool.
733
+
//endif::openshift-rosa-hcp[]
734
+
705
735
|--labels
706
736
|The labels (string) for the machine pool. The format must be a comma-delimited list of key=value pairs. This list overwrites any modifications made to node labels on an ongoing basis.
a| Required for {hcp-title-first} clusters. Optional for {product-title}, as there is only one `KubeletConfig` for the cluster. Specifies a name for the `KubeletConfig` object.
290
+
//TODO OSDOCS-10439: Add conditions back when HCP and Classic are published separately
291
+
// ifdef::openshift-rosa-classic[]
292
+
// Optional.
293
+
// endif::openshift-rosa-classic[]
294
+
// ifdef::openshift-rosa-hcp[]
295
+
// Required.
296
+
// endif::openshift-rosa-hcp[]
297
+
288
298
|-y, --yes
289
299
|Automatically answers `yes` to confirm the operation.
|Required. The maximum number of PIDs for the cluster.
201
+
a|Required. The maximum number of PIDs for each node in the machine pool associated with the `KubeletConfig` object.
202
+
//TODO OSDOCS-10439: Add conditions back when HCP and Classic are published separately
203
+
// ifdef::openshift-rosa-classic[]
204
+
// cluster.
205
+
// endif::openshift-rosa-classic[]
206
+
// ifdef::openshift-rosa-hcp[]
207
+
// machine pool associated with the `KubeletConfig` object.
208
+
// endif::openshift-rosa-hcp[]
209
+
210
+
|--name
211
+
a| Required for {hcp-title-first} clusters. Optional for {product-title}, as there is only one `KubeletConfig` for the cluster. Specifies a name for the `KubeletConfig` object.
212
+
//TODO OSDOCS-10439: Add conditions back when HCP and Classic are published separately
|The labels (string) for the machine pool. The format must be a comma-delimited list of key=value pairs. Editing this value only affects newly created nodes of the machine pool, which are created by increasing the node number, and does not affect the existing nodes. This list overwrites any modifications made to node labels on an ongoing basis.
226
250
251
+
//TODO OSDOCS-10439: Add conditions back when HCP and Classic are published separately
252
+
//ifdef::openshift-rosa-hcp[]
253
+
a|--kubelet-configs <kubeletconfig_name>
254
+
| For {hcp-title-first} clusters, the names of any `KubeletConfig` objects to apply to nodes in a machine pool.
255
+
//endif::openshift-rosa-hcp[]
256
+
227
257
|--max-replicas
228
258
|Specifies the maximum number of compute nodes when enabling autoscaling.
229
259
@@ -287,3 +317,10 @@ Modify the autoscaling range on a machine pool named `mp1` on a cluster named `m
287
317
----
288
318
$ rosa edit machinepool --max-replicas=9 --cluster=mycluster --name=mp1
289
319
----
320
+
321
+
Associate a `KubeletConfig` object with an existing machine pool on a {hcp-title-first} cluster.
322
+
323
+
[source,terminal]
324
+
----
325
+
$ rosa edit machinepool -c mycluster --kubelet-configs=set-high-pids --name high-pid-pool
= Setting a higher PID limit on an existing {product-title} cluster
7
+
= Setting a higher process ID limit on an existing {product-title} cluster
8
8
9
-
You can set a higher `podPidsLimit` on an existing {product-title} cluster by creating or editing a `KubeletConfig` object that changes the `--pod-pids-limit` parameter.
9
+
You can set a higher `podPidsLimit` on an existing {product-title}(ROSA) cluster by creating or editing a `KubeletConfig` object that changes the `--pod-pids-limit` parameter.
10
10
11
11
[IMPORTANT]
12
12
====
@@ -15,39 +15,35 @@ Changing the `podPidsLimit` on an existing cluster will trigger non-control plan
15
15
16
16
.Prerequisites
17
17
18
-
* You have a ROSA Classic cluster.
19
-
+
20
-
--
21
-
:FeatureName: Configuring the maximum number of PIDs
22
-
include::snippets/rosa-classic-support.adoc[]
23
-
--
18
+
* You have a {product-title} cluster.
19
+
* You have installed the ROSA CLI (`rosa`).
24
20
* You have installed the OpenShift CLI (`oc`).
25
21
* You have logged in to your Red Hat account by using the ROSA CLI.
26
22
27
23
.Procedure
28
-
29
24
. Create or edit the `KubeletConfig` object to change the PID limit.
30
25
+
31
26
--
32
27
** If this is the first time you are changing the default PID limit, create the `KubeletConfig` object and set the `--pod-pids-limit` value by running the following command:
33
28
+
34
29
[source,terminal]
35
30
----
36
-
$ rosa create kubeletconfig -c <cluster_name> --pod-pids-limit=<value>
31
+
$ rosa create kubeletconfig -c <cluster_name> --name <kubeletconfig_name> --pod-pids-limit=<value>
37
32
----
38
33
+
34
+
NOTE: The `--name` parameter is optional on ROSA Classic clusters, because only one `KubeletConfig` object is supported per ROSA Classic cluster.
35
+
+
39
36
For example, the following command sets a maximum of 16,384 PIDs per pod for cluster `my-cluster`:
40
37
+
41
38
[source,terminal]
42
39
----
43
-
$ rosa create kubeletconfig -c my-cluster --pod-pids-limit=16384
40
+
$ rosa create kubeletconfig -c my-cluster --name set-high-pids --pod-pids-limit=16384
44
41
----
45
-
46
42
** If you previously created a `KubeletConfig` object, edit the existing `KubeletConfig` object and set the `--pod-pids-limit` value by running the following command:
47
43
+
48
44
[source,terminal]
49
45
----
50
-
$ rosa edit kubeletconfig -c <cluster_name> --pod-pids-limit=<value>
46
+
$ rosa edit kubeletconfig -c <cluster_name> --name <kubeletconfig_name> --pod-pids-limit=<value>
51
47
----
52
48
--
53
49
+
@@ -85,4 +81,4 @@ The new PIDs limit appears in the output, as shown in the following example:
0 commit comments