配置 Azure Kubernetes 服务 (AKS) 集群

学习如何配置 Azure Kubernetes 集群

本指南将引导您安装 Azure Kubernetes 服务 (AKS) 集群。如果您需要更多信息,请参考 快速入门:使用 Azure CLI 部署 AKS 集群

先决条件

部署 AKS 集群

  1. 在终端中登录到 Azure。

    az login
    
  2. 设置您的默认订阅:

    az account set -s [your_subscription_id]
    
  3. 创建资源组。

    az group create --name [your_resource_group] --location [region]
    
  4. 创建 AKS 集群。若需使用特定版本的 Kubernetes,请使用 --kubernetes-version 参数(需 1.13.x 或更高版本)。

    az aks create --resource-group [your_resource_group] --name [your_aks_cluster_name] --node-count 2 --enable-addons http_application_routing --generate-ssh-keys
    
  5. 获取 AKS 集群的访问凭据。

    az aks get-credentials -n [your_aks_cluster_name] -g [your_resource_group]
    

AKS Edge Essentials

要使用 Azure Kubernetes 服务 (AKS) Edge Essentials 创建单机 K8s/K3s Linux-only 集群,您可以按照 AKS Edge Essentials 快速入门指南 进行操作。

相关链接