![](/img/trans.png)
[英]Azure Kubernetes Error when running "az aks get-credentials --resource-group AKSResourceGroupName --name AKSClusterName" command
[英]Azure Kubernetes - Customized Name for the Extra Resource group created as a part of the AKS Setup?
我創建了一個 Azure Kubernetes 服務 (AKS) 實例,並發現除了我在其中創建 AKS 實例的資源組之外,還為我創建了一個資源組。
例如:
我的 AKS 資源組:Production_MyAKSInstance 附加資源組:MC_MyResourceGroup-Production_MyAKSInstance_westeurope
有沒有辦法將附加資源組重命名為 Production_MyAKSInstance_Supportive?
您不能重命名它,但是您可以在創建集群時指定一個名稱。
https://docs.microsoft.com/en-us/azure/aks/faq
默認情況下,AKS 會將節點資源組命名為 MC_resourcegroupname_clustername_location,但您也可以提供自己的名稱。
若要指定自己的資源組名稱,請安裝 aks-preview Azure CLI 擴展版本 0.3.2 或更高版本。 使用 az aks create 命令創建 AKS 群集時,請使用 --node-resource-group 參數並為資源組指定名稱。 如果使用 Azure 資源管理器模板部署 AKS 群集,則可以使用 nodeResourceGroup 屬性定義資源組名稱。
輔助資源組由 Azure 資源提供者在你自己的訂閱中自動創建。 您只能在創建集群時指定自定義資源組名稱。 當您使用節點資源組時,請記住您不能:
為節點資源組指定現有資源組。 為節點資源組指定不同的訂閱。 創建集群后更改節點資源組名稱。 指定節點資源組內受管資源的名稱。 在節點資源組中修改或刪除 Azure 創建的托管資源標簽。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.