Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cloud http load balancer SSL termination

I have an instance listening on port 8080.

I want to create a load balancer to map 443 (ssl) to the instance port 8080 so that ssl terminates at the load balancer and traffic between the lb and the instance is not encrypted.

I have uploaded the ssl cert, created an HTTP load balancer but can't seem to figure out how to set up the forwarding like that.

Coming from AWS ELB, there's a simple way to do this, can't find a way to do it on Google Cloud Platform.

Any thoughts ?

like image 756
Michael Avatar asked Oct 31 '25 18:10

Michael


1 Answers

Found it.

  1. Create an instance group that has at least 1 live instance
  2. Create http load balancer with the following:
    1. Upload a SSL certificate
    2. Create a backend service to point to the instance group. Make sure the protocol is HTTP
    3. Create a target https proxy with the certificate you uploaded
    4. Finally, create a global forwarding rule that points HTTPS to the target proxy you created before.
like image 154
Michael Avatar answered Nov 03 '25 18:11

Michael



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!