Does GCP load balancer support different front end port and backend port?

792 views
Skip to first unread message

Shaozhen Ding

unread,
May 23, 2017, 10:50:57 PM5/23/17
to gce-discussion

Assume the front end port is 443 doing ssl termination The backend instance port is port 8080 which is clear text

Anyway to configure that? I can not see that option while it is available in AWS

Marilu (Cloud Platform Support)

unread,
May 24, 2017, 3:31:49 PM5/24/17
to gce-discussion
Hello Shaozhen,

I don't know about AWS product.

On Google Cloud Platform, when you are creating an HTTPs load balancer, you can configure the backend service on the port that your application is listening, in your case might be port 8080. 

If you're using the Cloud Console, when creating the backend service, in the 'Port numbers' section you can add a list of ports that the backend will receive requests through, then you can configure the frontend on port 443. The load balancer will receive the requests on port 443 and redirect them to your instance on port 8080. 

If this is not what you're looking for, provide a full description of what are you trying to achieve.

I hope this helps,

Marilu
Reply all
Reply to author
Forward
0 new messages