|
|
@ -12,13 +12,15 @@ metadata: |
|
|
|
labels: |
|
|
|
{{- include "portalmodelo.labels" . | nindent 4 }} |
|
|
|
annotations: |
|
|
|
{{- if .Values.ingress.tls }} |
|
|
|
{{- if .Values.ingress.tls.enabled }} |
|
|
|
{{- if contains "letsencrypt" .Values.ingress.tls.provider }} |
|
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod" |
|
|
|
{{- end }} |
|
|
|
nginx.ingress.kubernetes.io/rewrite-target: "/VirtualHostBase/https/www.{{ $hostName }}:443/portal/VirtualHostRoot/$1" |
|
|
|
nginx.ingress.kubernetes.io/from-to-www-redirect: "true" |
|
|
|
{{- end }} |
|
|
|
spec: |
|
|
|
{{- if .Values.ingress.tls }} |
|
|
|
{{- if .Values.ingress.tls.enabled }} |
|
|
|
tls: |
|
|
|
- hosts: |
|
|
|
- "www.{{ $hostName }}" |
|
|
|