Azure

按照以下说明为 Istio 准备 Azure 集群。

您可以通过 AKS用于自托管 Kubernetes 或 AKS 的 Azure 集群 API 提供程序 (CAPZ) 将 Kubernetes 集群部署到 Azure,它完全支持 Istio。

AKS

您可以通过多种方式创建 AKS 集群,例如 az cliAzure 门户az cli 与 BicepTerraform

对于 az cli 选项,请完成 az login 身份验证或使用云 Shell,然后运行以下命令。

  1. 确定支持 AKS 的所需区域名称。

    $ az provider list --query "[?namespace=='Microsoft.ContainerService'].resourceTypes[] | [?resourceType=='managedClusters'].locations[]" -o tsv
    
  2. 验证所需区域支持的 Kubernetes 版本。

    使用上述步骤中所需的区域值替换 my location,然后执行。

    $ az aks get-versions --location "my location" --query "orchestrators[].orchestratorVersion"
    
  3. 创建资源组并部署 AKS 集群。

    用所需的名称替换 myResourceGroupmyAKSCluster,用步骤 1 中的值替换 my location,如果区域不支持则使用 1.28.3,然后执行。

    $ az group create --name myResourceGroup --location "my location"
    $ az aks create --resource-group myResourceGroup --name myAKSCluster --node-count 3 --kubernetes-version 1.28.3 --generate-ssh-keys
    
  4. 获取 AKS kubeconfig 凭据。

    用上一步中的名称替换 myResourceGroupmyAKSCluster,然后执行。

    $ az aks get-credentials --resource-group myResourceGroup --name myAKSCluster
    
这些信息对您有用吗?
您有任何改进建议吗?

感谢您的反馈!