SSL redirection with Google Ingress and Managed certificate

7/13/2019

Is it possible to configure SSL redirection (forcing https over http) with Google Ingress and Managed certificates in GKE ? If yes, then how ? This documentation doesn't mention it: https://cloud.google.com/kubernetes-engine/docs/how-to/managed-certs

-- Deepak Garg
google-kubernetes-engine
kubernetes
ssl

1 Answer

7/18/2019

For now there is no way to force redirection to the SSL version of sites when using the GCE ingress class. However, there are feature requests to make this possible in the future.

If you need this feature you can either, do the automatic redirection directly in the backend rather than the ingress or, you can use another ingress class, such as Nginx, with support for this feature.

Alternatively, you can disallow HTTP using an ingress annotation, leaving only HTTPS available.

-- yyyyahir
Source: StackOverflow