Raf*_*fAl 1 azure kubernetes azure-aks
我正在尝试添加一个可以运行基于 Windows 的容器的节点池。我在 Azure 门户中看到的是选择 Windows 作为操作系统的禁用选项。提示说:Windows node pools require a Windows authentication profile。我尝试用谷歌搜索可能的解决方案,但一无所获。
如何向现有 AKS 群集提供 Windows 身份验证配置文件以使 AKS 运行基于 Windows 的容器?
看起来这种情况有一个悬而未决的问题。
问题是在第一次创建集群时,您没有提供任何--windows-admin-password和--windows-admin-username。因此,当您尝试创建一个将创建 VM 的新 Windows 节点池时,该 VM 没有任何Windows authentication profile.
如果您查看集群资源az aks show但没有看到 Window 配置文件,则您必须创建一个新集群,例如使用AZ CLI:
az aks create -g MyResourceGroup -n MyManagedCluster --load-balancer-sku Standard --network-plugin azure --windows-admin-username azure --windows-admin-password 'replacePassword1234$'
Run Code Online (Sandbox Code Playgroud)
如果您使用 terraform 创建集群,则可以添加此部分:
# Create AKS Cluster
resource "azurerm_kubernetes_cluster" "akscluster" {
# Code goes here..
windows_profile {
admin_username = "azure"
admin_password = "azure"
}
}
Run Code Online (Sandbox Code Playgroud)
也要注意这个线程。
| 归档时间: |
|
| 查看次数: |
4704 次 |
| 最近记录: |