Skip to content

Commit eb0a9eb

Browse files
authored
Merge pull request #13457 from ahardin-rh/recommended-host-practices
Adding Recommended Host Practices to 4.0
2 parents 0c643ed + 2da0651 commit eb0a9eb

File tree

4 files changed

+57
-2
lines changed

4 files changed

+57
-2
lines changed

_topic_map.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ Name: Scalability and performance
245245
Dir: scalability_and_performance
246246
Distros: openshift-origin, openshift-enterprise
247247
Topics:
248+
- Name: Recommended host practices
249+
File: recommended-host-practices
248250
- Name: Using the node tuning Operator
249251
File: using-node-tuning-operator
250252
- Name: Using Cluster Loader
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * scalability_and_performance/recommended-host-practices.adoc
4+
5+
[id='create-a-kubeletconfig-crd-to-edit-kubelet-parameters-{context}']
6+
= Create a KubeletConfig CRD to edit kubelet parameters
7+
8+
The kubelet configuration is currently serialized as an ignition configuration,
9+
so it can be directly edited. However, there is also a new
10+
kubelet-config-controller added to the Machine Config Controller (MCC). This
11+
allows you to create a KubeletConfig CustomResourceDefinition (CRD) to edit the
12+
kubelet parameters.
13+
14+
.Procedure
15+
16+
. Run:
17+
+
18+
----
19+
$ oc get machineconfig
20+
----
21+
+
22+
This provides a list of the available machine configuration objects you can
23+
select. By default, the two kubelet-related configs are `01-master-kubelet` and
24+
`01-worker-kubelet`.
25+
26+
. To set the max Pods per node on the worker nodes, create a YAML file that
27+
contains the kublet configuration. For example, `max-worker-pods.yaml`:
28+
+
29+
----
30+
apiVersion: machineconfiguration.openshift.io/v1
31+
kind: KubeletConfig
32+
metadata:
33+
name: set-max-pods
34+
spec:
35+
machineConfigSelector: 01-worker-kubelet
36+
kubeletConfig:
37+
maxPods: 250
38+
----
39+
40+
. Apply the file by running:
41+
+
42+
----
43+
$ oc apply -f max-worker-pods.yaml
44+
----

scalability_and_performance/PLACEHOLDER

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[id='recommended-host-practices']
2+
= Recommended host practices
3+
include::modules/common-attributes.adoc[]
4+
:context:
5+
6+
toc::[]
7+
8+
{nbsp} +
9+
This topic provides recommended host practices for {product-title}.
10+
11+
include::modules/create-a-kubeletconfig-crd-to-edit-kubelet-parameters.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)