【发布时间】:2021-04-30 01:22:28
【问题描述】:
我有一个 AKS 集群和一些带有 Nodeport 的微服务。
User -> Application Gateway -> Backend Pool -> Nodeport of microservice -> service
但是,我想将应用程序网关与来自 AKS 节点池的虚拟机规模集一起使用。
当我在应用程序网关中添加 AKS 节点池的后端 (VMSS) 时
{
"status": "Failed",
"error": {
"code": "LinkedAuthorizationFailed",
"message": "The client has permission to perform action 'Microsoft.Compute/galleries/images/versions/read' on scope '/subscriptions/aa51d057-842e..../resourcegroups/MC_loadbalancer_aaa-aks-1_southeastasia/providers/Microsoft.Compute/virtualMachineScaleSets/aks-syspool-13675031-vmss', however the current tenant '1393b73d-faec-...' is not authorized to access linked subscription '911a5e88-712a-...'."
}
}
但如果我创建手动 VMSS 并将其添加到应用程序网关,那就没问题了。但是当我通过 AKS 集群添加 VMSS 节点池时,就会出现上述错误。
这个错误很奇怪。好像我的租户 ID 没有订阅 911a5e88....
真的可以将应用程序网关连接到 AKS 节点池作为后端池吗?
【问题讨论】:
-
如何通过 AKS 集群添加 VMSS 节点池?
-
我通过 Kubernetes 服务 AKS 集群对其进行扩展。有一个名为“节点池”的菜单。它由 AKS Azure 自动创建。
-
此“节点池”表示您可以为 AKS 添加新节点池,您如何面对此错误?另外,我对“但是如果我创建手动 VMSS 并将其添加到应用程序网关,就可以了。”感到困惑。
-
我的意思是,当我将 AKS 集群创建的 VMSS 添加到应用程序网关的后端池中时,我得到了类似上面的错误。但是,当我自己创建虚拟 VMSS 并将其添加到应用程序网关的后端池中时,我没有收到任何错误。
标签: azure-aks azure-cloud-services azure-application-gateway