az network public-ip create --name <name> --resource-group <rg name> --allocation-method Static --dns-name <dns name>
{
"publicIp": {
"ipAddress": "1.2.3.4",
...
"provisioningState": "Succeeded",
...
}
}
$ kubectl describe svc -n kube-system ingressservice
...
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal EnsuringLoadBalancer 9s (x2 over 24s) service-controller Ensuring load balancer
Warning CreatingLoadBalancerFailed 9s (x2 over 14s) service-controller Error creating load balancer (will retry): Failed to ensure load balancer for service kube-system/ingressservice: user supplied IP Address 1.2.3.4 was not found
帮忙?这难道不就行了吗?IP 位于同一个资源组中。
这是 AKS 的问题吗?它似乎适用于 ACS。
答案1
所以。事实证明,除了我认为的 RG 之外,AKS 还创建了另一个 RG。因此,将 IP 移动到该 RG 解决了该问题。