I'd love to set up HSTS with my GKE cluster, as right now HTTP requests return a Google broken robot 404 page after setting this up in ingress.yml
annotations
:
kubernetes.io/ingress.allow-http: "false"
Apparently there are options for this in ingress.yml
(namely hsts-max-age
and hsts-include-subdomains
), but as far as I understand it's not supported by GKE: https://github.com/kubernetes/ingress/blob/7c749ede0a2d88f289279d61d04005e22f002104/docs/annotations.md#tls-related
I'd really like to avoid using and maintaining a custom Nginx load balancer and losing Google's scaling, sticking to the default one would be a strong requirement. I'd also like to avoid letting HTTP requests pass through and handling redirects and the HSTS header in my app.
If HSTS isn't possible, I could live with a good redirection setup.
Thanks a lot!