@@ -174,3 +174,47 @@ To minimize node reboots, label the target nodes with a label the machine config
174174// matchLabels:
175175// node-role.kubernetes.io/worker-custom: ""
176176// EOF
177+
178+ *Cloud provider-specific TuneD profiles*
179+
180+ With this functionality, all Cloud provider-specific nodes can conveniently
181+ be assigned a TuneD profile specifically tailored to a given Cloud provider
182+ on a {product-title} cluster. This can be accomplished without adding
183+ additional node labels or grouping nodes into machine config pools.
184+
185+ This functionality takes advantage of `spec.providerID` node object values
186+ in the form of `<cloud-provider>://<cloud-provider-specific-id>` and writes
187+ the file `/var/lib/tuned/provider` with the value `<cloud-provider>` in NTO
188+ operand containers. The content of this file is then used by TuneD to load
189+ `provider-<cloud-provider>` profile if such profile exists.
190+
191+ The `openshift` profile that both `openshift-control-plane` and
192+ `openshift-node` profiles inherit settings from is now updated to use
193+ this functionality through the use of conditional profile loading.
194+ Neither NTO nor TuneD currently ship any Cloud provider-specific profiles.
195+ However, it is possible to create a custom profile `provider-<cloud-provider>`
196+ that will be applied to all Cloud provider-specific cluster nodes.
197+
198+ .Example GCE Cloud provider profile
199+ [source,yaml]
200+ ----
201+ apiVersion: tuned.openshift.io/v1
202+ kind: Tuned
203+ metadata:
204+ name: provider-gce
205+ namespace: openshift-cluster-node-tuning-operator
206+ spec:
207+ profile:
208+ - data: |
209+ [main]
210+ summary=GCE Cloud provider-specific profile
211+ # Your tuning for GCE Cloud provider goes here.
212+ name: provider-gce
213+ ----
214+
215+ [NOTE]
216+ ====
217+ Due to profile inheritance, any setting specified in the
218+ `provider-<cloud-provider>` profile will be overwritten by the `openshift`
219+ profile and its child profiles.
220+ ====
0 commit comments