Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

creating a region application load balancer using ingress

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 Solved
0 3 641
1 ACCEPTED 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.

View solution in original post

3 REPLIES 3

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.

is there any ingress class for creating `proxy-network-load-balance` thanks.

Hey! I just came across this same issue. I'm trying to create a regional load balancer by using the gke ingress controller. Problem is that by using the gce-internal ingress class, i am creating an internal load balancer and therefore it seems like clients from outside the network cannot connect. Is there any way to create an external regional load balancer by using the gke ingress controller? 
Thank you very much