0
votes

I am deploying my apps to the kubernetes and accessing it via ingress controller, I have configured nginx ingress controller as well as GKE ingress controller. Nginx for web app deployments and GKE for api. Now i have an issue on GKE ingress for https. I have configured google managed SSL on LB. and it's opening fine for https, But i want to redirect all the http requests to https.

Same things are working in Nginx ingress, I want it for GKE ingress.

2
Hi Vyas, are you looking for further information ? - Suresh Vishnoi
Yes @SureshVishnoi You are right . GCE ingress doesn't handle https redirection, But i have to use redirection. i have deployed web apps and web APIs on kubernetes, Already i have redirect my web app [reactJS] using nginx ($http_x_forwarded_proto = "http") and put it in docker file, But for api i can't use nginx because it uses go language. - Linux guru

2 Answers

1
votes

GCE-Ingress doesn't handle redirection or rewriting at the L7 layer directly yet. Here is the Issue on github

0
votes

If your LB is Global Load Blaancer you add a new forwarding rule to handle the http request. Refer this post

Redirecting http to https in Google Cloud