Questions tagged [gcp-load-balancer]

Use this tag when dealing with Load balancers provided by Google Cloud Platform

The Google Cloud Load Balancer (GCLB) is a software-defined globally distributed load balancing service. This tag can be used generally for all the GCP Load balancer related questions.

159 questions
2
votes
1 answer

client disconnected before any response GCLB

We deployed our site in front GCLB. LB -> Cloud run -> APP ENGINE API Cloud run is hosting a react site and App Engine golang API. After 12 hours we started to saw decline in the amount of clicks via google analytics but traffic was pretty much…
MIkCode
  • 2,655
  • 5
  • 28
  • 46
2
votes
1 answer

GKE SSL Proxy NEG health check not working for TCP based services

I hav a StatefulSet of 3 replicas of ejabberd. I have exposed them to GCP NEG using the following declaration: apiVersion: v1 kind: Service metadata: name: ejabberd annotations: cloud.google.com/neg: '{"exposed_ports": {"5222":{"name":…
2
votes
1 answer

Connect external HTTPS load balancer with NGINX Ingress exposed as zonal NEG

What I wanna accomplish I'm trying to connect an external HTTPS (L7) load balancer with an NGINX Ingress exposed as a zonal Network Endpoint Group (NEG). My Kubernetes cluster (in GKE) contains a couple of web application deployments that I've…
2
votes
1 answer

How to deploy an Internal HTTP(S) LoadBalancer using Google Deployment Manager (Python + YAML)?

I'm implementing IaC for a web application consisting of monoliths and microservices. I want to place an internal HTTP load balancer in front of all our microservices and have not found any example for that yet. I looked at Cloud Foundation Toolkit.…
1
vote
1 answer

Cannot get mTLS working on a Google Cloud Load Balancer using PrivateCA

I am trying to get mTLS working on a global HTTPS load balancer in Google Cloud, but the client connections are just being rejected with the error "client_cert_validation_failed". I followed the exact instructions here and here but it appears the…
1
vote
1 answer

GKE: Standard tier load balancer

I'd like to downgrade the load balancer of my GKE Service from Premium tier, to Standard tier. To do that, I added cloud.google.com/network-tier: Standard to the annotations of my service. The problem now is that no load balancer is getting created…
1
vote
0 answers

how can we host static website using global https loadbalancer and cdn keeping bucket private in gcp?

I have hosted website(index.html) in gcs bucket keeping bucket private not accessible to internet. also configured global https loadbalancer with cloud cdn enabled.but when i try to hit loadbalancer's IP getting accessed denied error. although i…
1
vote
1 answer

Google Cloud HTTPS Load Balancer URL Rewrite To Remove .html Extension

I've read the Traffic management overview for global external HTTP(S) load balancers URL maps overview but do not see how to do the following: https://example.com/page ----> https://example.com/page.html Is it possible to "remove" the .html…
Ronnie Royston
  • 16,778
  • 6
  • 77
  • 91
1
vote
1 answer

Understanding target_tags and firewall_networks of the GCP's Load Balancer Terraform module

I'm trying to understand the target_tags and firewall_networks fields of the GoogleCloudPlatform/lb-http/google Terraform module. For the target_tags, the documentation says: "List of target tags for health check firewall rule [...]". I find it…
1
vote
1 answer

Setting up Cloud Armor for load balancer/static website in Storage Bucket

I recently setup a Storage Bucket to serve a static website within the Google Cloud Platform. Costs were rising for a few days so I looked into what was causing this. I looked into Logging and found that there are a very large amount of requests…
1
vote
1 answer

Issue with routing rules in GCP Load Balancer

I have 2 backend buckets and I have defined routing rule in my LB as you can see in the image attached here I want to route to "testing" backend bucket as default route and if url contains /student then I want it to route to another backend bucket…
1
vote
0 answers

How to use Identity Aware Proxy (IAP) for protecting certain paths for Cloud Load Balancer

I'm using google Cloud Load Balancer for exposing dashboard. This load balancer was created by GKE ingress. I want to restrict certain endpoints with specific pattern to be accessible with organization email. eg. */internal/*. I've tried to use IAP…
1
vote
1 answer

What's the best way to proxy requests with GCP?

What is the best way to proxy requests with GCP, e.g. to hide secrets. Is it by making use of GCP API-Gateway which spawns a Load Balancer or by using a Load Balancer directly. Or are there any other ways? A sample request to "transform" might…
1
vote
0 answers

Is a GCP Firewall Rule applied on an instance which shares the same target tag/network tag but is on a different network?

I am following instructions given in a Lab Challenge - Creating an Internal Load Balancer The test comes with a my-internal-app network pre-configured (along with the usual default network). It then asks the student to create everything(instances,…
Zaid Khan
  • 786
  • 2
  • 11
  • 24
1
vote
1 answer

How to allow empty POST bodies / avoid 411

I've discovered that if you send a request with an empty POST body, meaning no Content-Length header, the GCP Load Balancer (in this case from an Ingress controller through GKE) will reject your request with this error: $ curl -L -X POST…
Daniel Porteous
  • 5,536
  • 3
  • 25
  • 44
1
2
3
10 11