My gke is in a shared vpc, can I use any CR, or add some annotations to create a regional application load balancer rather than a global.
my service backend is only deployed in one region.
Solved! Go to Solution.
Hi @gavinX,
Welcome to Google Cloud Community!
To create a regional application load balancer, use this annotation in your Service object:
annotations:
cloud.google.com/neg: '{"ingress": true}'
While on Ingress configuration, use this annotation:
annotations:
kubernetes.io/ingress.class: "gce-internal"
Note: Any Ingress resource deployed on GKE without the kubernetes.io/ingress.class
annotation is interpreted as an external Ingress resource which deploys an external load balancer for the Service.
Lastly, regional load balancing means that backend endpoints are distributed across a single region. Since your service backend is deployed in only one region, the regional load balancer will route traffic to that specific region.
For further insights on deploying Ingress and Services in Google Kubernetes Engine and enhance your understanding about Load balancers, Refer to this documentation below:
I hope the above information is helpful.