From 9ae428a713641a25443c0ab190d07de8143bc35a Mon Sep 17 00:00:00 2001 From: Jon Huhn Date: Tue, 3 Sep 2024 13:18:18 -0500 Subject: [PATCH] azure: use new label to identity GPU Nodes --- cluster-autoscaler/cloudprovider/azure/README.md | 2 +- cluster-autoscaler/cloudprovider/azure/azure_cloud_provider.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster-autoscaler/cloudprovider/azure/README.md b/cluster-autoscaler/cloudprovider/azure/README.md index 33218c17ad6b..db4f5f8be793 100644 --- a/cluster-autoscaler/cloudprovider/azure/README.md +++ b/cluster-autoscaler/cloudprovider/azure/README.md @@ -54,7 +54,7 @@ k8s.io_cluster-autoscaler_node-template_resources_cpu: 3800m k8s.io_cluster-autoscaler_node-template_resources_memory: 11Gi ``` -> **_NOTE_**: GPU autoscaling on VMSS is informed by the presence of BOTH the `accelerator` AND `kubernetes.azure.com/accelerator` Node labels. A VMSS with GPUs whose Nodes do not have BOTH labels may not be scaled correctly. In a future release of cluster-autoscaler, the `accelerator` label will no longer be used and only the `kubernetes.azure.com/accelerator` label will be required. +> **_NOTE_**: GPU autoscaling on VMSS is informed by the presence of the `kubernetes.azure.com/accelerator` Node label. A VMSS with GPUs whose Nodes do not have the label may not be scaled correctly. The `accelerator` label was used for this purpose in versions 1.31 and older. #### Autoscaling options diff --git a/cluster-autoscaler/cloudprovider/azure/azure_cloud_provider.go b/cluster-autoscaler/cloudprovider/azure/azure_cloud_provider.go index 53bdc4de9ad6..f99f2dae615d 100644 --- a/cluster-autoscaler/cloudprovider/azure/azure_cloud_provider.go +++ b/cluster-autoscaler/cloudprovider/azure/azure_cloud_provider.go @@ -75,7 +75,7 @@ func (azure *AzureCloudProvider) Name() string { // GPULabel returns the label added to nodes with GPU resource. func (azure *AzureCloudProvider) GPULabel() string { - return legacyGPULabel // Use legacy to avoid breaking, for now + return GPULabel } // GetAvailableGPUTypes return all available GPU types cloud provider supports