google-cloud-platformgoogle-kubernetes-enginekubernetes-ingressstatic-ip-addressgoogle-cloud-internal-load-balancer

How do you assign a static IP to a GKE Ingress?


I have a GKE cluster setup where I have a service running as an internal load balancer and an ingress for this service. Is there a way to set a static IP to the ingress controller? My reference guide is here: https://cloud.google.com/kubernetes-engine/docs/concepts/ingress


Solution

  • You can achieve this with one annotation in the ingress definition. You can view more in the documentation