🚀(helm) support Django Admin pages in ingress paths

Based on @rouja reco, I added a dedicated ingress to serve Django Admin
pages and Django statics. The admin route will be secured by the oauth proxy.

I simply copy/pasted the first ingress template, and adapted it.
This commit is contained in:
Lebaud Antoine
2024-03-20 15:22:22 +01:00
committed by aleb_the_flash
parent e8a241adbc
commit de4551ab30
4 changed files with 127 additions and 1 deletions

View File

@@ -46,4 +46,6 @@ ingress:
enabled: true
host: desk.127.0.0.1.nip.io
admin:
enabled: true
host: desk.127.0.0.1.nip.io

View File

@@ -75,3 +75,10 @@ ingress:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
admin:
enabled: true
host: desk-staging.beta.numerique.gouv.fr
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/auth-signin: https://oauth2-proxy-preprod.beta.numerique.gouv.fr/oauth2/start
nginx.ingress.kubernetes.io/auth-url: https://oauth2-proxy-preprod.beta.numerique.gouv.fr/oauth2/auth