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/create-a-containerruntimeconfig-crd.adoc
-8Lines changed: 0 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -15,16 +15,8 @@ To revert the changes implemented by using a `ContainerRuntimeConfig` CR, you mu
15
15
16
16
You can modify the following settings by using a `ContainerRuntimeConfig` CR:
17
17
18
-
* **PIDs limit**: Setting the PIDs limit in the `ContainerRuntimeConfig` is expected to be deprecated. If PIDs limits are required, it is recommended to use the `podPidsLimit` field in the `KubeletConfig` CR instead. The default `podPidsLimit` value is `4096` and the default `pids_limit` value is `0`. If `podPidsLimit` is lower than `pids_limit` then the effective container PIDs limit is defined by the value set in `podPidsLimit`.
19
-
+
20
-
[NOTE]
21
-
====
22
-
The CRI-O flag is applied on the cgroup of the container, while the Kubelet flag is set on the cgroup of the pod. Please adjust the PIDs limit accordingly.
23
-
====
24
-
25
18
* **Log level**: The `logLevel` parameter sets the CRI-O `log_level` parameter, which is the level of verbosity for log messages. The default is `info` (`log_level = info`). Other options include `fatal`, `panic`, `error`, `warn`, `debug`, and `trace`.
26
19
* **Overlay size**: The `overlaySize` parameter sets the CRI-O Overlay storage driver `size` parameter, which is the maximum size of a container image.
27
-
* **Maximum log size**: Setting the maximum log size in the `ContainerRuntimeConfig` is expected to be deprecated. If a maximum log size is required, it is recommended to use the `containerLogMaxSize` field in the `KubeletConfig` CR instead.
28
20
* **Container runtime**: The `defaultRuntime` parameter sets the container runtime to either `crun` or `runc`. The default is `crun`.
29
21
30
22
You should have one `ContainerRuntimeConfig` CR for each machine config pool with all the config changes you want for that pool. If you are applying the same content to all the pools, you only need one `ContainerRuntimeConfig` CR for all the pools.
Copy file name to clipboardExpand all lines: modules/create-a-kubeletconfig-crd-to-edit-kubelet-parameters.adoc
+35-19Lines changed: 35 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -57,8 +57,8 @@ $ oc get kubeletconfig
57
57
58
58
[source,terminal]
59
59
----
60
-
NAME AGE
61
-
set-max-pods 15m
60
+
NAME AGE
61
+
set-kubelet-config 15m
62
62
----
63
63
64
64
.Example showing a `KubeletConfig` machine config
@@ -74,7 +74,7 @@ $ oc get mc | grep kubelet
74
74
...
75
75
----
76
76
77
-
The following procedure is an example to show how to configure the maximum number of pods per node on the worker nodes.
77
+
The following procedure is an example to show how to configure the maximum number of pods per node, the maximum PIDs per node, and the maximum container log size size on the worker nodes.
78
78
79
79
.Prerequisites
80
80
@@ -104,15 +104,15 @@ metadata:
104
104
creationTimestamp: 2019-02-08T14:52:39Z
105
105
generation: 1
106
106
labels:
107
-
custom-kubelet: set-max-pods <1>
107
+
custom-kubelet: set-kubelet-config <1>
108
108
----
109
109
<1> If a label has been added it appears under `labels`.
110
110
111
111
.. If the label is not present, add a key/value pair:
.. Verify that the `KubeletConfig` object is created:
226
+
.Verification
227
+
228
+
. Verify that the `KubeletConfig` object is created:
215
229
+
216
230
[source,terminal]
217
231
----
@@ -221,8 +235,8 @@ $ oc get kubeletconfig
221
235
.Example output
222
236
[source,terminal]
223
237
----
224
-
NAME AGE
225
-
set-max-pods 15m
238
+
NAME AGE
239
+
set-kubelet-config 15m
226
240
----
227
241
+
228
242
Depending on the number of worker nodes in the cluster, wait for the worker nodes to be rebooted one by one. For a cluster with 3 worker nodes, this could take about 10 to 15 minutes.
@@ -257,7 +271,7 @@ Allocatable:
257
271
+
258
272
[source,terminal]
259
273
----
260
-
$ oc get kubeletconfigs set-max-pods -o yaml
274
+
$ oc get kubeletconfigs set-kubelet-config -o yaml
261
275
----
262
276
+
263
277
This should show a status of `True` and `type:Success`, as shown in the following example:
@@ -266,10 +280,12 @@ This should show a status of `True` and `type:Success`, as shown in the followin
0 commit comments