Skip to content

Commit

Permalink
[K8S] ingress class handling
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-lerouge committed Mar 25, 2024
1 parent 01e289c commit 28a3f49
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/api/.k8s/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ metadata:
nginx.ingress.kubernetes.io/configuration-snippet: |
more_clear_headers "Server";
spec:
{{ if .Values.ingress.ingressClassName }}
ingressClassName: {{ .Values.ingress.ingressClassName }}
{{ end -}}
{{ if .Values.tlsEnabled -}}
tls:
- hosts:
Expand Down
3 changes: 3 additions & 0 deletions packages/app/.k8s/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ metadata:
more_set_headers "X-Content-Type-Options: nosniff";
more_set_headers "Content-Security-Policy: default-src https://matomo.fabrique.social.gouv.fr/; connect-src *.dev.fabrique.social.gouv.fr https://api-emjpm.fabrique.social.gouv.fr/api/ https://emjpm.fabrique.social.gouv.fr https://hasura-emjpm.fabrique.social.gouv.fr/v1/graphql https://matomo.fabrique.social.gouv.fr/ https://openmaptiles.geo.data.gouv.fr/ https://openmaptiles.github.io/ https://api-adresse.data.gouv.fr https://entreprise.data.gouv.fr https://nominatim.openstreetmap.org; font-src 'self'; img-src https://openmaptiles.github.io/ https://api.mapbox.com/ 'self' data: blob:; script-src https://matomo.fabrique.social.gouv.fr/ blob: 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline' https://api.tiles.mapbox.com/; manifest-src 'self';";
spec:
{{ if .Values.ingress.ingressClassName }}
ingressClassName: {{ .Values.ingress.ingressClassName }}
{{ end -}}
{{ if .Values.tlsEnabled -}}
tls:
- hosts:
Expand Down
3 changes: 3 additions & 0 deletions packages/hasura/.k8s/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ metadata:
nginx.ingress.kubernetes.io/configuration-snippet: |
more_clear_headers "Server";
spec:
{{ if .Values.ingress.ingressClassName }}
ingressClassName: {{ .Values.ingress.ingressClassName }}
{{ end -}}
{{ if .Values.tlsEnabled -}}
tls:
- hosts:
Expand Down

0 comments on commit 28a3f49

Please sign in to comment.