Azure
按照以下说明为 Istio 准备 Azure 集群。
您可以通过 AKS 或 用于自托管 Kubernetes 或 AKS 的 Azure 集群 API 提供程序 (CAPZ) 将 Kubernetes 集群部署到 Azure,它完全支持 Istio。
AKS
您可以通过多种方式创建 AKS 集群,例如 az cli、Azure 门户、az cli 与 Bicep 或 Terraform。
对于 az
cli 选项,请完成 az login
身份验证或使用云 Shell,然后运行以下命令。
确定支持 AKS 的所需区域名称。
$ az provider list --query "[?namespace=='Microsoft.ContainerService'].resourceTypes[] | [?resourceType=='managedClusters'].locations[]" -o tsv
验证所需区域支持的 Kubernetes 版本。
使用上述步骤中所需的区域值替换
my location
,然后执行。$ az aks get-versions --location "my location" --query "orchestrators[].orchestratorVersion"
创建资源组并部署 AKS 集群。
用所需的名称替换
myResourceGroup
和myAKSCluster
,用步骤 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
获取 AKS
kubeconfig
凭据。用上一步中的名称替换
myResourceGroup
和myAKSCluster
,然后执行。$ az aks get-credentials --resource-group myResourceGroup --name myAKSCluster