I have created a load balancer on GCP. It supports both http and https. I want to change it so that it supports only https. I considered referring to this document https://cloud.google.com/load-balancing/docs/https/setting-up-http-https-redirect but it seems to create two separate load balancers.
As I already have a load balancer which is currently serving both http and https traffic, I'll prefer that I change the existing one. How could I do it?
Load balancer set up looks like this
[![enter image description here][1]][1]
The load balancer connects with two backend services
[![enter image description here][2]][2]
I suppose I should add a host and path rules but I can't figure out what should be the rule to redirect all http traffic with 301.
[![enter image description here][3]][3]
Would host be the domain name of my web application (eg. www.mydomain.com)?
The path rule takes url path but not url scheme (http). How do I specify that do redirect only for http traffic?
[![enter image description here][4]][4]
httpON but redirecthttptraffic tohttpsusing301. But I can't figure out how to configure that in my current load balancer. I tried creating another load balancer forhttpas per the link in my question. That should redirect the requests tohttpsload balancer but so far it is not working. Maybe it takes some time for the configurations to take effect. - Manu Chadha