快速入门:使用 Windows Admin Center 在 Azure Stack HCI 上创建 Kubernetes 群集Quickstart: Create a Kubernetes cluster on Azure Stack HCI using Windows Admin Center

适用于:Azure Stack HCIApplies to: Azure Stack HCI

设置 Azure Kubernetes 服务主机之后,可以使用 Windows Admin Center 创建 Kubernetes 群集。After you have set up your Azure Kubernetes Service host, you can create a Kubernetes cluster using Windows Admin Center. 若要改为使用 PowerShell,请参阅使用 PowerShell 创建 Kubernetes 群集To instead use PowerShell, see Create a Kubernetes cluster with PowerShell.

让我们开始吧:Let's get started:

  1. 设置 Azure Kubernetes 服务并检查系统要求(如果尚未这样做)。Set up Azure Kubernetes Service and check the system requirements if you haven't already.

  2. 若要开始在 Windows Admin Center 中创建 Kubernetes 群集,请按网关屏幕上的“添加”按钮。To begin creating a Kubernetes cluster in Windows Admin Center, press the Add button on the gateway screen.

  3. 在“添加或创建资源”面板中的“Kubernetes 群集(预览)”下,选择“新建”以启动 Kubernetes 群集向导 。In the Add or create resources panel, under Kubernetes cluster (preview), select Create new to launch the Kubernetes cluster wizard. 尽管 Kubernetes 群集下的“添加”按钮在公共预览版中提供,但它不起作用。While the "Add" button under Kubernetes clusters is present in the public preview, it is nonfunctional. 在 Kubernetes 群集创建过程中的任何时候,都可以退出向导,但请注意,不会保存进度。At any point during the Kubernetes cluster create process you may exit the wizard, but note that your progress won't be saved.

    说明 Windows Admin Center 中的“添加或创建资源”边栏选项卡(现在包含用于 Kubernetes 群集的新磁贴)。

  4. 查看将托管 Kubernetes 群集的系统的先决条件,以及 Windows Admin Center 的先决条件。Review the prerequisites for the system that will host the Kubernetes cluster and those for Windows Admin Center. 完成后,选择“下一步”。When finished, select Next.

  5. 在“基本信息”页上,配置有关群集的信息,例如 Azure Kubernetes 服务主机信息和主节点池大小。On the Basics page, configure information about your cluster, such as Azure Kubernetes Service host information, and primary node pool size. Azure Kubernetes 服务主机信息和主节点池大小。Azure Kubernetes Service host information, and primary node pool size. Azure Kubernetes 服务主机字段需要你要将 Kubernetes 群集部署到的 Azure Stack HCI 群集的完全限定的域名。The Azure Kubernetes Service host field requires the fully qualified domain name of the Azure Stack HCI cluster that you want to deploy your Kubernetes cluster to. 必须通过 Azure Kubernetes 服务工具为此系统完成主机设置。You must have completed the host setup for this system through the Azure Kubernetes Service tool. 在公共预览版中,节点计数不可编辑,会默认为 2,但可以为更大的工作负载配置节点大小。In public preview, the node count is uneditable and will default to 2, but node size can be configured for larger workloads. 完成后,选择“下一步”。When complete, select Next.

    说明 Kubernetes 群集向导的“基本信息”页。

  6. 可以在“节点池”页上配置其他节点池来运行工作负载。You may configure additional node pools to run your workloads on the Node pools page. 在公共预览版期间,可以最多添加一个 Windows 节点池和一个 Linux 节点池(除了系统节点池之外)。During public preview, you may add up to one Windows node pool and one Linux node pool (in addition to the system node pool). 完成后,选择“下一步”****。When you're finished, select Next.

  7. 在“网络”页上指定网络配置。Specify your network configuration on the Networking page. 如果选择“高级”,则可以自定义在为群集中的节点创建虚拟网络时使用的地址范围。If you select "Advanced," you can customize the address range used when creating a virtual network for nodes in the cluster. 如果选择“基本”,则会使用默认地址范围创建群集中节点的虚拟网络。If you select "Basic," virtual networks for nodes in the cluster will be created with a default address range. 无法在公共预览版中更改网络设置(负载均衡器、网络策略和 HTTP 应用程序路由)。The Network Settings (load balancer, network policy, and HTTP application routing) cannot be changed in public preview. 完成后,选择“下一步”。When complete, select Next.

    说明 Kubernetes 群集向导的“网络”页。

  8. 在“集成”页上,将群集与其他服务(如 Kubernetes 仪表板、持久存储和 Azure Monitor)连接。On the Integration page, connect your cluster with additional services, such as the Kubernetes dashboard, persistent storage, and Azure Monitor. 持久存储是需要在此页上配置的唯一服务。Persistent storage is the only service that is required to configure on this page. 在公共预览版中,持久存储位置默认为在主机设置过程中选择的存储位置。In public preview, the persistent storage location will default to the storage location selected during host set-up. 此字段当前不可编辑。This field is currently uneditable. 完成后,选择“下一步”****。When you're finished, select Next.

  9. 在“审阅 + 创建”页上审阅进行的选择。Review your selections on the Review + create page. 如果感到满意,请选择“创建”以开始部署。When you're satisfied, select Create to begin deployment. 部署进度会显示在此页的顶部。Your deployment progress will be shown at the top of this page.

  10. 部署完成之后,“后续步骤”页会详细说明如何管理群集。After your deployment is complete, the Next steps page details how to manage your cluster. 此页还包含 SSH 密钥和 Kubernetes 仪表板令牌。This page also contains your SSH Key and Kubernetes dashboard token. 如果在上一步中选择禁用 Kubernetes 仪表板或 Azure Arc 集成,则此页上的某些信息和说明可能不可用或不起作用。If you chose to disable the Kubernetes dashboard or Azure Arc integration in the previous step, some of the information and instructions on this page may not be available or functional.

重要

建议将 SSH 密钥和 Kubernetes 仪表板令牌保存在安全的可访问位置。We recommend saving your SSH Key and Kubernetes dashboard token in a secure, accessible location.

在本快速入门中,你设置了 Azure Kubernetes 服务主机并部署了 Kubernetes 群集。In this quickstart, you set up an Azure Kubernetes Service host and deployed a Kubernetes cluster.

若要详细了解 Azure Stack HCI 上的 Azure Kubernetes 服务,并演练如何在 Azure Stack HCI 上的 Azure Kubernetes 服务上部署和管理 Linux 应用程序,请继续学习本教程。To learn more about Azure Kubernetes Service on Azure Stack HCI, and walk through how to deploy and manage Linux applications on Azure Kubernetes Service on Azure Stack HCI, continue to this tutorial.