This example command creates a sample Kubernetes application (published on Marketplace) on your AKS cluster: az k8s-extension create -name voteapp -extension-type Contoso.AzureVoteKubernetesAppTest -scope cluster -cluster-name -resource-group -cluster-type managedClusters -plan-name testPlanID -plan-product testOfferID -plan-publisher testPublisherID -configuration-settings title=VoteAnimal value1=Cats value2=Dogs This example command creates an Azure Machine Learning extension instance on your AKS cluster: az k8s-extension create -name azureml -extension-type -scope cluster -cluster-name -resource-group -cluster-type managedClusters -configuration-settings enableInference=True allowInsecureConnections=True inferenceRouterServiceType=LoadBalancer If the extension is already installed, make sure you're running the latest version by using the following command: az extension update -name k8s-extensionĬreate a new extension instance with k8s-extension create, passing in values for the mandatory parameters. Install the extension by running the following command: az extension add -name k8s-extension The latest version of the k8s-extension Azure CLI extensions. For more information, see Use managed identity.Īzure CLI version >= 2.16.0 installed. For existing service principal-based clusters, switch to manage identity by running az aks update with the -enable-managed-identity flag. For new clusters created with az aks create, managed identity is configured by default. This cluster must have been created with a managed identity, as cluster extensions won't work with service principal-based clusters. To register these providers, run the following command: az provider register -namespace Microsoft.ContainerService -waitĪz provider register -namespace Microsoft.KubernetesConfiguration -waitĪn AKS cluster. The Microsoft.ContainerService and Microsoft.KubernetesConfiguration resource providers must be registered on your subscription. If you don't have an Azure subscription, you can create a free account. For a comprehensive list of commands and their parameters, see the az k8s-extension CLI reference. The examples provided in this article are not complete, and are only meant to showcase functionality.
0 Comments
Leave a Reply. |