简体   繁体   中英

Unable to assign a global LB IP to the Ingress-Nginx Helm Chart

I am attempting to assign a static global LB IP in GCP to an ingress controller (Ingress-Nginx) in GKE but whenever I do so I get an error message regarding

Error syncing load balancer: failed to ensure load balancer: requested ip "<IP_ADDRESS>" is neither static nor assigned to the LB

If I attempt to set that LB IP value to a static regional IP that is in the same region as my cluster it works. If I don't pass in a LB IP value that also works and an IP is assigned to me.

I am using the command

helm install ingress-nginx --set controller.service.loadBalancerIP="<IP_ADDRESS>" ingress-nginx/ingress-nginx

Is there an additional set flag that I am not using or does my GKE cluster need to be in more than 1 region?

This was due to assigning a global IP to the ingress controller. It should use a regional IP instead of a global one.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM