mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
53 lines
2.1 KiB
Plaintext
53 lines
2.1 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * machine_management/applying-autoscaling.adoc
|
|
// * machine_management/creating_machinesets/creating-machineset-aws.adoc
|
|
// * machine_management/creating_machinesets/creating-machineset-azure.adoc
|
|
// * machine_management/creating_machinesets/creating-machineset-azure-stack-hub.adoc
|
|
// * machine_management/creating_machinesets/creating-machineset-bare-metal.adoc
|
|
// * machine_management/creating_machinesets/creating-machineset-gcp.adoc
|
|
// * machine_management/creating_machinesets/creating-machineset-ibm-cloud.adoc
|
|
// * machine_management/creating_machinesets/creating-machineset-ibm-power-vs.adoc
|
|
// * machine_management/creating_machinesets/creating-machineset-nutanix.adoc
|
|
// * machine_management/creating_machinesets/creating-machineset-osp.adoc
|
|
// * machine_management/creating_machinesets/creating-machineset-vsphere.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="machineset-label-gpu-autoscaler_{context}"]
|
|
= Labeling GPU machine sets for the cluster autoscaler
|
|
|
|
[role="_abstract"]
|
|
You can use a machine set label to indicate which machines the cluster autoscaler can use to deploy GPU-enabled nodes.
|
|
|
|
.Prerequisites
|
|
* Your cluster uses a cluster autoscaler.
|
|
|
|
.Procedure
|
|
|
|
* On the machine set that you want to create machines for the cluster autoscaler to use to deploy GPU-enabled nodes, add a `cluster-api/accelerator` label:
|
|
+
|
|
--
|
|
[source,yaml]
|
|
----
|
|
apiVersion: machine.openshift.io/v1beta1
|
|
kind: MachineSet
|
|
metadata:
|
|
name: machine-set-name
|
|
spec:
|
|
template:
|
|
spec:
|
|
metadata:
|
|
labels:
|
|
cluster-api/accelerator: <accelerator_name>
|
|
----
|
|
where:
|
|
|
|
<accelerator_name>:: Specifies a label of your choice that consists of alphanumeric characters, `-`, `_`, or `.` and starts and ends with an alphanumeric character.
|
|
For example, you might use `nvidia-t4` to represent Nvidia T4 GPUs, or `nvidia-a10g` for A10G GPUs.
|
|
+
|
|
[NOTE]
|
|
====
|
|
You must specify the value of this label for the `spec.resourceLimits.gpus.type` parameter in your `ClusterAutoscaler` CR.
|
|
For more information, see "Cluster autoscaler resource definition".
|
|
====
|
|
-- |