2023-03-19 10:07:25 +00:00
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
|
kind: Ingress
|
|
|
|
|
metadata:
|
|
|
|
|
name: {{ include "..fullname" . }}
|
|
|
|
|
labels:
|
|
|
|
|
{{- include "..labels" . | nindent 4 }}
|
|
|
|
|
spec:
|
|
|
|
|
ingressClassName: nginx
|
|
|
|
|
tls:
|
|
|
|
|
- secretName: {{ include "..fullname" . }}-cert-secret
|
|
|
|
|
hosts:
|
|
|
|
|
- {{ .Values.site.url | replace "www." "" }}
|
|
|
|
|
- www.{{ .Values.site.url | replace "www." "" }}
|
|
|
|
|
- {{ .Values.site.url | replace "www." "" | replace "." "-" }}.eu.cust.azurecd.net
|
|
|
|
|
- www.{{ .Values.site.url | replace "www." "" | replace "." "-" }}.eu.cust.azurecd.net
|
|
|
|
|
{{- if .Values.site.additionalIngressNames }}
|
|
|
|
|
{{- range .Values.site.additionalIngressNames }}
|
|
|
|
|
- {{ . }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
|
|
rules:
|
|
|
|
|
- host: {{ .Values.site.url | replace "www." "" }}
|
|
|
|
|
http:
|
|
|
|
|
paths:
|
|
|
|
|
- path: /
|
|
|
|
|
pathType: Prefix
|
|
|
|
|
backend:
|
|
|
|
|
service:
|
2023-03-19 20:20:41 +00:00
|
|
|
name: {{ include "..fullname" . }}
|
|
|
|
|
port:
|
|
|
|
|
number: 80
|
2023-03-19 10:07:25 +00:00
|
|
|
- host: www.{{ .Values.site.url | replace "www." "" }}
|
|
|
|
|
http:
|
|
|
|
|
paths:
|
|
|
|
|
- path: /
|
|
|
|
|
pathType: Prefix
|
|
|
|
|
backend:
|
|
|
|
|
service:
|
2023-03-19 20:20:41 +00:00
|
|
|
name: {{ include "..fullname" . }}
|
|
|
|
|
port:
|
|
|
|
|
number: 80
|
2023-03-19 10:07:25 +00:00
|
|
|
- host: {{ .Values.site.url | replace "www." "" | replace "." "-" }}.eu.cust.azurecd.net
|
|
|
|
|
http:
|
|
|
|
|
paths:
|
|
|
|
|
- path: /
|
|
|
|
|
pathType: Prefix
|
|
|
|
|
backend:
|
|
|
|
|
service:
|
2023-03-19 20:20:41 +00:00
|
|
|
name: {{ include "..fullname" . }}
|
|
|
|
|
port:
|
|
|
|
|
number: 80
|
2023-03-19 10:07:25 +00:00
|
|
|
- host: www.{{ .Values.site.url | replace "www." "" | replace "." "-" }}.eu.cust.azurecd.net
|
|
|
|
|
http:
|
|
|
|
|
paths:
|
|
|
|
|
- path: /
|
|
|
|
|
pathType: Prefix
|
|
|
|
|
backend:
|
|
|
|
|
service:
|
2023-03-19 20:20:41 +00:00
|
|
|
name: {{ include "..fullname" . }}
|
|
|
|
|
port:
|
|
|
|
|
number: 80
|
2023-03-19 10:07:25 +00:00
|
|
|
{{- if .Values.site.additionalIngressNames }}
|
|
|
|
|
{{- range .Values.site.additionalIngressNames }}
|
|
|
|
|
- host: {{ . }}
|
|
|
|
|
http:
|
|
|
|
|
paths:
|
|
|
|
|
- path: /
|
|
|
|
|
pathType: Prefix
|
|
|
|
|
backend:
|
|
|
|
|
service:
|
2023-03-19 20:20:41 +00:00
|
|
|
name: {{ include "..fullname" . }}
|
|
|
|
|
port:
|
|
|
|
|
number: 80
|
2023-03-19 10:07:25 +00:00
|
|
|
{{- end }}
|
|
|
|
|
{{- end }}
|