Azure AKS - 创建负载均衡器时出错
Azure AKS - Error creating load balancer
我正在按照 运行 https://docs.microsoft.com/en-us/azure/aks/tutorial-kubernetes-deploy-application 上 Azure AKS 上的容器化应用程序的教程进行操作,但我的部署无法为我的服务创建负载均衡器:
Normal EnsuringLoadBalancer 3m (x12 over 33m) service-controller
Ensuring load balancer
Warning CreatingLoadBalancerFailed 3m (x12 over 33m) service-controller
Error creating load balancer (will retry): Failed to ensure load balancer f
for service default/azure-vote-front: azure.BearerAuthorize
#WithAuthorization: Failed to refresh the Token for request to
https://management.azure.com/subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxxxx/
resourceGroups/xxxxxxxxxxxxxxxxxxxxxxxxxxxx/providers/Microsoft.Network/load
Balancers/kubernetes-internal?api-version=2017-03-01: StatusCode=0 --
Original Error: adal: Refresh request failed. Status Code = '401'
当 运行ning kubectl get service myservice --watch 外部 ip 只是停留在 pending 状态。
这可能是什么原因?
您创建的 AKS 集群所使用的服务主体缺少集群 create\manage 资源的权限。您需要使用适当的服务主体重新创建集群(比修复容易得多)。
我正在按照 运行 https://docs.microsoft.com/en-us/azure/aks/tutorial-kubernetes-deploy-application 上 Azure AKS 上的容器化应用程序的教程进行操作,但我的部署无法为我的服务创建负载均衡器:
Normal EnsuringLoadBalancer 3m (x12 over 33m) service-controller
Ensuring load balancer
Warning CreatingLoadBalancerFailed 3m (x12 over 33m) service-controller
Error creating load balancer (will retry): Failed to ensure load balancer f
for service default/azure-vote-front: azure.BearerAuthorize
#WithAuthorization: Failed to refresh the Token for request to
https://management.azure.com/subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxxxx/
resourceGroups/xxxxxxxxxxxxxxxxxxxxxxxxxxxx/providers/Microsoft.Network/load
Balancers/kubernetes-internal?api-version=2017-03-01: StatusCode=0 --
Original Error: adal: Refresh request failed. Status Code = '401'
当 运行ning kubectl get service myservice --watch 外部 ip 只是停留在 pending 状态。 这可能是什么原因?
您创建的 AKS 集群所使用的服务主体缺少集群 create\manage 资源的权限。您需要使用适当的服务主体重新创建集群(比修复容易得多)。