将 AKS 群集部署到 Azure Stack HCI

已完成

现在,你已经更加清楚地了解了实现容器化工作负载的最佳方法,这将有助于 Contoso 实现其合并和现代化目标。 你渴望在概念证明环境中测试 Azure Stack HCI 群集上的部署 AKS。 你决定为此目的使用 Windows Admin Center。

部署 Azure Stack HCI 上的 AKS

使用 Windows Admin Center 在 Azure Stack HCI 群集上部署 AKS 的简要步骤是:

  • 下载 Azure Stack HCI 上的 AKS 安装软件
  • 安装和配置 Windows Admin Center 来管理 Azure Stack HCI 群集(如果还没有完成的话)
  • 安装 Windows Admin Center 的 AKS 扩展
  • 在 Azure Stack HCI 群集上创建 AKS 群集

下载 Azure Stack HCI 上的 AKS 安装软件

Microsoft 根据评估提供 Azure Stack HCI 上的 AKS 安装组件。 可以在填写简短的联机注册表单后下载它们。

安装和配置 Windows Admin Center

在 Windows 10 或 Windows Server 2019 计算机上安装 Windows Admin Center,此计算机与 Azure Stack HCI 群集节点是相同 Active Directory 域服务 (AD DS) 域的成员。 请确保 Windows Admin Center 版本为 2009 或更高版本。

安装 Windows Admin Center 的 AKS 扩展

你下载的安装组件包括 NuGet 包(扩展名为 .nupkg),其中包含 Windows Admin Center 的 AKS 扩展。 若要安装此扩展,请将下载的包的位置添加到 Windows Admin Center 扩展管理器的扩展源列表中。

The screenshot depicts the Add package source pane of the extension manager of Windows Admin Center.

在将扩展源添加到扩展管理器后,可以安装基于 NuGet 包的扩展,这会自动触发 Windows Admin Center 页面重载,从而使此扩展可用。

The screenshot depicts the AKS extension installed on Windows Admin Center.

在 Azure Stack HCI 群集上创建 AKS 群集

Windows Admin Center 依赖 AKS 扩展来指导你完成安装过程。 此过程包括以下步骤:

  • 先决条件
  • 系统检查
  • 连接
  • 主机配置
  • Azure 注册
  • 审阅
  • 新建群集

先决条件

Windows Admin Center 列出了安装 Azure Stack HCI 上的 AKS 所需满足的计算、存储、网络和软件先决条件。 你有责任验证这些先决条件是否得到满足。

The screenshot depicts the Prerequisites step of the Set up Azure Kubernetes Service wizard in Windows Admin Center.

系统检查

Windows Admin Center 验证当前设置是否适合安装 Azure Stack HCI 上的 AKS。 例如,Windows Admin Center 检查是否已向 Azure 注册它、验证群集共享卷是否存在,并概述可用处理器、内存、虚拟交换机以及群集节点上安装的操作系统角色。

The screenshot depicts the System checks step of the Set up Azure Kubernetes Service wizard in Windows Admin Center.

连接

Windows Admin Center 会提示你启用凭据安全支持提供程序 (CredSSP) 协议,这是在 AKS 安装期间将凭据从运行 Windows Admin Center 的服务器委派给 Azure Stack HCI 群集节点所必需的。

The screenshot depicts the Connectivity step of the Set up Azure Kubernetes Service wizard in Windows Admin Center.

主机配置

Windows Admin Center 要求你指定一些要应用于 AKS 群集的设置。 除了提供群集名称之外,还必须决定是使用静态分配还是使用动态主机配置协议 (DHCP) 来配置其网络。

The screenshot depicts the Host configuration step of the Set up Azure Kubernetes Service wizard in Windows Admin Center.

Azure 注册

部署完成后,Windows Admin Center 自动向 Azure 注册 AKS。 为了成功进行此注册,请提供 Azure 订阅名称,以及要用于托管 AKS 资源的资源组。 你还必须授权 Windows Admin Center 代表你执行注册。

The screenshot depicts the Azure registration step of the Set up Azure Kubernetes Service wizard in Windows Admin Center.

审阅

Windows Admin Center 概述了你所选择的配置。 在验证它们正确无误后,应用这些更改。 这会触发安装过程。

The screenshot depicts the Review step of the Set up Azure Kubernetes Service wizard in Windows Admin Center.

新建群集

在成功安装之后,可以继续部署 Kubernetes 群集。

The screenshot depicts the New cluster step of the Set up Azure Kubernetes Service wizard in Windows Admin Center.

注意

可以使用 Windows PowerShell 完全自动化部署 Azure Stack HCI 上的 AKS。

演示:部署 Azure Stack HCI 上的 AKS

在此演示中,你将学习如何部署 Azure Stack HCI 上的 AKS。

知识检查

1.

你正在为 Contoso IT 运营团队记录 AKS 安装过程,此团队将在许多 Azure Stack HCI 群集上执行类似的安装。 你必须列出安装 Windows Admin Center 的 AKS 扩展的先决条件。 应在列表中包括哪一个步骤?