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