你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Azure Kubernetes 服务(AKS)群集管理的免费、标准和高级版定价层
Azure Kubernetes 服务 (AKS) 现在为群集管理提供三个定价层:“免费层”“标准层”和“高级层”。 这三个层都位于基本 SKU 中。
免费层 | 标准层 | 高级层 | |
---|---|---|---|
使用时机 | • 你想免费试用 AKS • 你不熟悉 AKS 和 Kubernetes |
• 你正在运行生产或任务关键工作负载,需要高可用性和高可靠性 • 你需要有资金保障的 SLA |
• 你正在运行生产或任务关键工作负载,需要高可用性和高可靠性 • 你需要有资金保障的 SLA。 • 所有任务关键型、大规模或生产工作负载都需要 2 年支持 |
支持的群集类型 | • 开发群集或小规模测试环境 • 少于 10 个节点的群集 |
• 企业级或生产工作负载 • 最多包含 5,000 个节点的群集 |
• 企业级或生产工作负载 • 最多包含 5,000 个节点的群集 |
定价 | • 免费群集管理 • 根据使用的资源即用即付 |
• 根据使用的资源即用即付 • 标准层群集管理定价 |
• 根据使用的资源即用即付 • 高级层群集管理定价 |
功能比较 | • 建议用于少于 10 个节点的群集,但最多可以支持 1,000 个节点 • 包括所有当前 AKS 功能 |
• 默认情况下,运行时间 SLA 已启用 • 更高的群集可靠性和更多资源 • 一个群集中最多可以支持 5,000 个节点 • 包括所有当前 AKS 功能 |
• 包括标准层中的所有当前 AKS 功能 • Microsoft 维护过去的社区支持 |
重要
运行时间 SLA 已重新定位为标准层中包含的默认功能。
重新定位将导致以下 API 更改:
SKU | 2023-02-01 API 之前 | 从 2023-02-01 API 开始 |
---|---|---|
ManagedClusterSKUName | "Basic" | “Base” |
ManagedClusterSKUTier | “免费” "Paid" |
“免费” “Standard” |
2023-02-01 和 2023-02-02 预览 API 版本中删除了“基本”和“付费”,这将是 API 版本 2023-02-01 和 2023-02-02 预览或更高版本中的中断性变更。 如果你使用自动化脚本、CD 管道、ARM 模板、Terraform 或其他依赖于上述参数的第三方工具,请确保在升级到 2023-02-01 和 2023-02-02 预览 API 或更高版本之前,更新 API 参数,以使用“免费”替代“基本”或用“标准”替代“基本”。
有关定价的详细信息,请参阅 AKS 定价详细信息。
运行时间 SLA 条款和条件
在标准层中,默认为每个群集启用运行时间 SLA 功能。 运行时间 SLA 功能可保证使用可用性区域的群集的 Kubernetes API 服务器终结点可用性为99.95%,不使用可用性区域的群集可用性为99.9%。有关详细信息,请参阅 SLA。
上市区域
开始之前
确保已安装 Azure CLI 2.47.0 或更高版本。 运行 az --version
即可查找当前版本。 如果需要进行安装或升级,请参阅安装 Azure CLI。
创建新的群集并选择定价层
使用 Azure CLI 在 AKS 定价层上创建新群集。 可以在现有资源组中创建群集或创建新资源组。 要了解有关资源组及其使用方法的详细信息,请参阅使用 Azure CLI 管理资源组。
使用 az aks create
命令创建 AKS 群集。 下面的命令演示如何在每个层中创建名为 myResourceGroup 的新资源组,并在该资源组中创建名为 myAKSCluster 的群集。
# Create a new AKS cluster in the Free tier
az aks create --resource-group myResourceGroup --name myAKSCluster --tier free
# Create a new AKS cluster in the Standard tier
az aks create --resource-group myResourceGroup --name myAKSCluster --tier standard
# Create a new AKS cluster in the Premium tier
# LongTermSupport and Premium tier should be enabled/disabled together
az aks create --resource-group myResourceGroup --name myAKSCluster --tier premium --k8s-support-plan AKSLongTermSupport
部署完成后,它会返回有关群集的 JSON 格式的信息:
# Sample output for --tier free
},
"sku": {
"name": "Base",
"tier": "Free"
},
# Sample output for --tier standard
},
"sku": {
"name": "Base",
"tier": "Standard"
},
# Sample output for --tier premium
"sku": {
"name": "Base",
"tier": "Premium"
},
"supportPlan": "AKSLongTermSupport",
更新现有 AKS 群集的层
以下示例使用 az aks update
命令更新现有群集。
# Update an existing cluster from the Standard tier to the Free tier
az aks update --resource-group myResourceGroup --name myAKSCluster --tier free
# Update an existing cluster from the Free tier to the Standard tier
az aks update --resource-group myResourceGroup --name myAKSCluster --tier standard
若要从高级层更新现有群集,还需要更改支持计划。
# Update an existing cluster to the Premium tier
az aks update --resource-group myResourceGroup --name myAKSCluster --tier premium --k8s-support-plan AKSLongTermSupport
# Update an existing cluster to from Premium tier to Free or Standard tier
az aks update --resource-group myResourceGroup --name myAKSCluster --tier [free|standard] --k8s-support-plan KubernetesOfficial
完成此过程需要几分钟时间。 在更新群集层时,不应遇到任何停机。 完成后,以下示例 JSON 代码片段演示了如何将现有群集更新到基本 SKU 中的标准层。
},
"sku": {
"name": "Base",
"tier": "Standard"
},