Azure Kubernetes 服务 (AKS) 运行时间 SLAAzure Kubernetes Service (AKS) Uptime SLA

运行时间 SLA 是一个可选功能,用于为群集启用具有财务支持的更高 SLA。Uptime SLA is an optional feature to enable a financially backed, higher SLA for a cluster. 对于不使用可用性区域的群集,运行时间 SLA 可保证 Kubernetes API 服务器终结点 99.9% 的可用性。Uptime SLA guarantees 99.9% availability of the Kubernetes API server endpoint for clusters that don't use Availability Zones. AKS 跨更新域和容错域使用主节点副本,以确保满足 SLA 要求。AKS uses master node replicas across update and fault domains to ensure SLA requirements are met.

客户如果需要 SLA 以满足合规性要求或需要将 SLA 扩展到其最终用户,则应启用此功能。Customers needing an SLA to meet compliance requirements or require extending an SLA to their end users should enable this feature. 具有将从更高的运行时间 SLA 中受益的关键工作负载的客户也可能受益。Customers with critical workloads that will benefit from a higher uptime SLA may also benefit.

客户仍可以创建服务级别目标 (SLO) 为 99.5% 的无限制免费群集,并根据需要选择首选 SLO 或 SLA 运行时间。Customers can still create unlimited free clusters with a service level objective (SLO) of 99.5% and opt for the preferred SLO or SLA Uptime as needed.

重要

对于出口锁定的群集,请参阅限制出口流量以打开适当的端口。For clusters with egress lockdown, see limit egress traffic to open appropriate ports.

上市区域Region availability

  • 运行时间 SLA 在支持 AKS 的 Azure 中国云区域提供。Uptime SLA is available in Azure China Cloud regions where AKS is supported.
  • 在支持 AKS 的所有区域中,专用 AKS 群集都可以使用运行时间 SLA。Uptime SLA is available for private AKS clusters in all regions where AKS is supported.

SLA 条款和条件SLA terms and conditions

运行时间 SLA 是付费功能,按群集启用。Uptime SLA is a paid feature and enabled per cluster. 运行时间 SLA 定价取决于离散群集的数量,而不是各个群集的大小。Uptime SLA pricing is determined by the number of discrete clusters, and not by the size of the individual clusters. 有关详细信息,可以查看运行时间 SLA 定价详细信息You can view Uptime SLA pricing details for more information.

开始之前Before you begin

  • 安装 Azure CLI 版本 2.8.0 或更高版本Install the Azure CLI version 2.8.0 or later

创建具有运行时间 SLA 的新群集Creating a new cluster with Uptime SLA

备注

目前,如果启用运行时间 SLA,则无法将其从群集中删除。Currently, if you enable Uptime SLA, there is no way to remove it from a cluster.

若要创建具有运行时间 SLA 的群集,请使用 Azure CLI。To create a new cluster with the Uptime SLA, you use the Azure CLI.

以下示例在“chinaeast2”位置创建名为“myResourceGroup”的资源组:The following example creates a resource group named myResourceGroup in the chinaeast2 location:

# Create a resource group
az group create --name myResourceGroup --location chinaeast2

使用 az aks create 命令创建 AKS 群集。Use the az aks create command to create an AKS cluster. 以下示例创建一个具有一个节点的名为 myAKSCluster 的群集。The following example creates a cluster named myAKSCluster with one node. 此操作需要几分钟才能完成:This operation takes several minutes to complete:

# Create an AKS cluster with uptime SLA
az aks create --resource-group myResourceGroup --name myAKSCluster --uptime-sla --node-count 1

片刻之后,该命令将会完成,并返回有关群集的 JSON 格式信息。After a few minutes, the command completes and returns JSON-formatted information about the cluster. 下面的 JSON 片段显示了 SKU 的付费层,表明群集已启用了运行时间 SLA:The following JSON snippet shows the paid tier for the SKU, indicating your cluster is enabled with Uptime SLA:

  },
  "sku": {
    "name": "Basic",
    "tier": "Paid"
  },

修改现有群集以使用运行时间 SLAModify an existing cluster to use Uptime SLA

可以选择更新现有群集,以使用运行时间 SLA。You can optionally update your existing clusters to use Uptime SLA.

如果使用前面的步骤创建了 AKS 群集,请删除资源组:If you created an AKS cluster with the previous steps, delete the resource group:

# Delete the existing cluster by deleting the resource group 
az group delete --name myResourceGroup --yes --no-wait

创建新的资源组:Create a new resource group:

# Create a resource group
az group create --name myResourceGroup --location chinaeast2

创建新群集,不使用运行时间 SLA:Create a new cluster, and don't use Uptime SLA:

# Create a new cluster without uptime SLA
az aks create --resource-group myResourceGroup --name myAKSCluster --node-count 1

使用 az aks update 命令更新现有群集:Use the az aks update command to update the existing cluster:

# Update an existing cluster to use Uptime SLA
az aks update --resource-group myResourceGroup --name myAKSCluster --uptime-sla

下面的 JSON 片段显示了 SKU 的付费层,表明群集已启用了运行时间 SLA:The following JSON snippet shows the paid tier for the SKU, indicating your cluster is enabled with Uptime SLA:

},
  "sku": {
    "name": "Basic",
    "tier": "Paid"
},

清理Clean up

若要避免收费,请清理创建的任何资源。To avoid charges, clean up any resources you created. 若要删除群集,请使用 az group delete 命令删除 AKS 资源组:To delete the cluster, use the az group delete command to delete the AKS resource group:

az group delete --name myResourceGroup --yes --no-wait

后续步骤Next steps

将群集配置为限制出口流量Configure your cluster to limit egress traffic.