Azure
請依照以下指示準備用於 Istio 的 Azure 叢集。
您可以透過 AKS 或 適用於 Azure 的 Cluster API 提供者 (CAPZ) ,來將 Kubernetes 叢集部署到 Azure,以進行自我管理的 Kubernetes 或 AKS,兩者都完全支援 Istio。
AKS
您可以使用多種方式建立 AKS 叢集,例如 az cli、Azure 入口網站、搭配 Bicep 的 az cli,或 Terraform
對於 az
cli 選項,請完成 az login
驗證,或使用 Cloud 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