[Auto DevOps] www prefix with fake SSL
Summary
When deploying app with Auto DevOps ssl certificates only applies for non-www hosts
Steps to reproduce
Standard stack:
- connect kubernetes (k3s in my case) with gitlab
- install tiller, ingress-nginx, cert-manager from gitlab UI
- deploy your application
What is the current bug behavior?
Getting fake ssl for www-prefix domain with results to HSTS problem
What is the expected correct behavior?
Should get Lets Encrypt certificate for www-prefix domains
Possible fixes
not quite sure but probably need to upgrade part of cert-manager config with available hosts or adding podAnnotations:nginx.ingress.kubernetes.io/from-to-www-redirect: "true" for ingress-nginx-controller but sadly when im adding this lines to auto-deploy-values.yaml nothing changes in pods after deploy
used project: https://gitlab.com/ceboola/cra-nginx/ working ssl: https://production-nginx.51.75.65.215.nip.io/ bad ssl: https://www.production-nginx.51.75.65.215.nip.io/