Unable to use node selector option in cli command "az k8s-extension create" while installing ml entension in AKS

Nithya R 20 Reputation points
2023-11-22T17:22:38.8966667+00:00

We are using the below commands to install the ml extension in our AKS cluster with node selector config, but ending up with the attached error.

AKS_ML_Extension_Command1.png AKS_ML_Extension_Command2.png

Commands Used:
az k8s-extension create --name mlops-extension --extension-type Microsoft.AzureML.Kubernetes --config enableInference=True inferenceRouterServiceType=LoadBalancer installPromOp=False allowInsecureConnections=True nodeSelector.kubernetes.io/role=agent nodeSelector.beta.kubernetes.io/os=linux nodeSelector.type=virtual-kubelet --cluster-type managedClusters --cluster-name mlops-cluster --resource-group rg-mlops --scope cluster

 

az k8s-extension create --name mlops-extension --extension-type Microsoft.AzureML.Kubernetes --cluster-type managedClusters --cluster-name mlops-cluster --resource-group rg-mlops --scope cluster --configuration-settings enableInference=True --configuration-settings inferenceRouterServiceType=LoadBalancer --configuration-settings installPromOp=False --configuration-settings allowInsecureConnections=True --config-protected-settings nodeSelector.type=virtual-kubelet

Reference article:

https://learn.microsoft.com/en-us/azure/machine-learning/how-to-deploy-kubernetes-extension?view=azureml-api-2&tabs=deploy-extension-with-cli#review-azure-machine-learning-extension-configuration-settings

Can anyone check and let me know how to fix this?

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,046 questions
Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
705 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,173 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,207 questions
Azure Data Science Virtual Machines
Azure Data Science Virtual Machines
Azure Virtual Machine images that are pre-installed, configured, and tested with several commonly used tools for data analytics, machine learning, and artificial intelligence training.
69 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.