Skip to content

Commit

Permalink
Merge pull request #727 from acend/fix_helmchart_ingress
Browse files Browse the repository at this point in the history
Use ingressClassName instead on annotation
  • Loading branch information
splattner authored Oct 24, 2023
2 parents 20c0a05 + 65ad1f9 commit 2a07bc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions helm-chart/templates/acend-ingres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ingressClassName: {{ .Values.ingress.ingressClass }}
rules:
- host: acend.ch
http:
Expand Down Expand Up @@ -55,6 +56,7 @@ metadata:
nginx.ingress.kubernetes.io/auth-secret: staging-basic-auth
{{- end }}
spec:
ingressClassName: {{ .Values.ingress.ingressClass }}
rules:
- host: website-{{ .Release.Name }}.test.acend.ch
http:
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ image:
tag: ""

ingress:
ingressClass: nginx
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_headers "Strict-Transport-Security: max-age=31536000; includeSubDomains";
more_set_headers "Content-Security-Policy: default-src 'self' https://*.acend.ch";
Expand Down

0 comments on commit 2a07bc5

Please sign in to comment.