Azure-docs: About sku specification of az network public-ip create

Created on 20 Nov 2019  Β·  8Comments  Β·  Source: MicrosoftDocs/azure-docs

Hi team,
I moved this from here: https://github.com/MicrosoftDocs/azure-docs.ja-jp/issues/2907
It looks like the contributor is refering to the original documentation.

The comments below were machine-translated.

@a09-capf commented 14 hours ago β€” with docs.microsoft.com
When a public IP is issued without specifying sku as described in this document when executing the az network public-ip create command, Basic public IP seems to be issued by default.
When NGINX ingress controller is installed with Public IP of Basic sku specified as --set controller.service.loadBalancerIP, the following error occurs and Public IP is not assigned to Kubernetes load balancer service.

Error creating load balancer (will retry): failed to ensure load balancer for service ingress-basic / esteemed-hydra-nginx-ingress-controller: timed out waiting for the condition

If it was a public IP created by explicitly specifying Standard sku, it could be assigned without problems.

az network public-ip create --resource-group MC_myResourceGroup_myAKSCluster_eastus --name myAKSPublicIP --allocation-method static --sku Standard --query publicIp.ipAddress -o tsv


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 assigned-to-author container-servicsvc loc triaged

Most helpful comment

using az network public-ip create --resource-group MC_hbs_test_3_prodcluster_westeurope --name myPublicIP --sku Standard --allocation-method static --query publicIp.ipAddress -o tsv
then : helm install stable/nginx-ingress \
--namespace default \
--set controller.replicaCount=2 \
--set controller.nodeSelector."beta.kubernetes.io/os"=linux \
--set defaultBackend.nodeSelector."beta.kubernetes.io/os"=linux\
--set controller.service.loadBalancerIP="52.149.111.52"
I get the following error when describe svc :
this service cannot use this public pi and it stays on pending forever. When I looked at describe svc I get this error:
Normal EnsuringLoadBalancer 1s service-controller Ensuring load balancer
Warning CreateOrUpdateLoadBalancer 1s azure-cloud-provider network.LoadBalancersClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code='PublicIPAndLBSkuDoNotMatch' Message='Basic sku load balancer /subscriptions/b7bbd48f-b61d-4f74-aac4-f52d5196a50d/resourceGroups/mc_hbs_test_3_prodcluster_westeurope/providers/Microsoft.Network/loadBalancers/kubernetes cannot reference Standard sku publicIP /subscriptions/b7bbd48f-b61d-4f74-aac4-f52d5196a50d/resourceGroups/MC_hbs_test_3_prodcluster_westeurope/providers/Microsoft.Network/publicIPAddresses/myProdPublicIP.' Details=[]
Warning CreatingLoadBalancerFailed 1s service-controller Error creating load balancer (will retry): failed to ensure load balancer for service default/handy-coral-nginx-ingress-controller: timed out waiting for the condition

All 8 comments

Thanks for the feedback! We are currently investigating and will update you shortly.

@a09-capf the documentation already specifies -sku standard when creating the IP address

image

Looks like the ja-jp version does not though

https://docs.microsoft.com/ja-jp/azure/aks/ingress-static-ip

image

I will get this assigned to the correct person to make sure it is consistent across all localizations.

Thank you for your swift response!
γ‚γ‚ŠγŒγ¨γ†γ”γ–γ„γΎγ™οΌ

using az network public-ip create --resource-group MC_hbs_test_3_prodcluster_westeurope --name myPublicIP --sku Standard --allocation-method static --query publicIp.ipAddress -o tsv
then : helm install stable/nginx-ingress \
--namespace default \
--set controller.replicaCount=2 \
--set controller.nodeSelector."beta.kubernetes.io/os"=linux \
--set defaultBackend.nodeSelector."beta.kubernetes.io/os"=linux\
--set controller.service.loadBalancerIP="52.149.111.52"
I get the following error when describe svc :
this service cannot use this public pi and it stays on pending forever. When I looked at describe svc I get this error:
Normal EnsuringLoadBalancer 1s service-controller Ensuring load balancer
Warning CreateOrUpdateLoadBalancer 1s azure-cloud-provider network.LoadBalancersClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code='PublicIPAndLBSkuDoNotMatch' Message='Basic sku load balancer /subscriptions/b7bbd48f-b61d-4f74-aac4-f52d5196a50d/resourceGroups/mc_hbs_test_3_prodcluster_westeurope/providers/Microsoft.Network/loadBalancers/kubernetes cannot reference Standard sku publicIP /subscriptions/b7bbd48f-b61d-4f74-aac4-f52d5196a50d/resourceGroups/MC_hbs_test_3_prodcluster_westeurope/providers/Microsoft.Network/publicIPAddresses/myProdPublicIP.' Details=[]
Warning CreatingLoadBalancerFailed 1s service-controller Error creating load balancer (will retry): failed to ensure load balancer for service default/handy-coral-nginx-ingress-controller: timed out waiting for the condition

Yeah I'm having the same issue as hbensalem.

Yeah I'm having the same issue as hbensalem.

@stefankip The problem for me was that my AKS loadlancer SKU was of type 'Basic' and the public IP SKU was Standard. Setting both to the same SKU type solved the problem for me. I hope this helps

Exactly, I recreated the Public IP with Basic SKU. It's just a test environment and will keep the Standard SKU in mind when I'm creating the real thing :-) Thanks for replying!

Thank you for the feedback @a09-capf

The ja-jp version is now showing the parameter.

please-close

Was this page helpful?
0 / 5 - 0 ratings

Related issues

paulmarshall picture paulmarshall  Β·  3Comments

JamesDLD picture JamesDLD  Β·  3Comments

jharbieh picture jharbieh  Β·  3Comments

varma31 picture varma31  Β·  3Comments

JeffLoo-ong picture JeffLoo-ong  Β·  3Comments