Unable to use node selector option in cli command "az k8s-extension create" while installing ml entension in AKS
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:
Can anyone check and let me know how to fix this?