44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
|
|
apiVersion: networking.k8s.io/v1
|
||
|
|
kind: Ingress
|
||
|
|
metadata:
|
||
|
|
annotations:
|
||
|
|
cert-manager.io/cluster-issuer: {{ .Values.site.certificateIssuer | default "zssl-production" }}
|
||
|
|
labels: {{- include "..labels" . | nindent 4 }}
|
||
|
|
name: {{ include "..fullname" . }}
|
||
|
|
spec:
|
||
|
|
ingressClassName: nginx
|
||
|
|
rules:
|
||
|
|
- host: {{ .Values.site.primaryDomain }}
|
||
|
|
http:
|
||
|
|
paths:
|
||
|
|
- backend:
|
||
|
|
service:
|
||
|
|
name: {{ include "..fullname" . }}
|
||
|
|
port:
|
||
|
|
number: 8123
|
||
|
|
path: /
|
||
|
|
pathType: Prefix
|
||
|
|
{{- if .Values.site.additionalDomains }}
|
||
|
|
{{- range $domain := .Values.site.additionalDomains }}
|
||
|
|
- host: {{ $domain }}
|
||
|
|
http:
|
||
|
|
paths:
|
||
|
|
- backend:
|
||
|
|
service:
|
||
|
|
name: {{ include "..fullname" $ }}
|
||
|
|
port:
|
||
|
|
number: 8123
|
||
|
|
path: /
|
||
|
|
pathType: Prefix
|
||
|
|
{{- end }}
|
||
|
|
{{- end }}
|
||
|
|
tls:
|
||
|
|
- hosts:
|
||
|
|
- {{ .Values.site.primaryDomain }}
|
||
|
|
{{- if .Values.site.additionalDomains }}
|
||
|
|
{{- range $domain := .Values.site.additionalDomains }}
|
||
|
|
- {{ $domain }}
|
||
|
|
{{- end }}
|
||
|
|
{{- end }}
|
||
|
|
secretName: tls-{{ include "..fullname" . }}
|