Kubernetes ingress redirect to https

5/7/2019

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.

-- Linux guru
google-cloud-platform
google-kubernetes-engine
kubernetes
kubernetes-ingress

2 Answers

5/7/2019

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

-- Kishore
Source: StackOverflow

5/7/2019

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

-- Suresh Vishnoi
Source: StackOverflow