42 lines
1.4 KiB
YAML
42 lines
1.4 KiB
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: koha-ingress
|
|
namespace: koha
|
|
{{ if and .Values.tls.enabled .Values.tls.cert_manager.enabled }}
|
|
annotations:
|
|
{{ if eq .Values.tls.cert_manager.kind "cluster-issuer" }}
|
|
cert-manager.io/cluster-issuer: {{ .Values.tls.cert_manager.name }}
|
|
{{ else }}
|
|
cert-manager.io/issuer: {{ .Values.tls.cert_manager.name }}
|
|
{{ end }}
|
|
{{ end }}
|
|
labels:
|
|
app: koha
|
|
spec:
|
|
{{ if .Values.tls.enabled }}
|
|
tls:
|
|
- hosts:
|
|
- {{ .Values.staff.prefix }}{{ .Values.instance }}{{ .Values.staff.suffix }}{{ .Values.global.domain }}
|
|
- {{ .Values.opac.prefix }}{{ .Values.instance }}{{ .Values.opac.suffix }}{{ .Values.global.domain }}
|
|
secretName: koha-{{ .Values.instance }}-tls-secret
|
|
{{ end }}
|
|
rules:
|
|
- host: {{ .Values.staff.prefix }}{{ .Values.instance }}{{ .Values.staff.suffix }}{{ .Values.global.domain }}
|
|
http:
|
|
paths:
|
|
- backend:
|
|
service:
|
|
name: apache2
|
|
port:
|
|
number: {{ .Values.staff.port }}
|
|
pathType: ImplementationSpecific
|
|
- host: {{ .Values.opac.prefix }}{{ .Values.instance }}{{ .Values.opac.suffix }}{{ .Values.global.domain }}
|
|
http:
|
|
paths:
|
|
- backend:
|
|
service:
|
|
name: apache2
|
|
port:
|
|
number: {{ .Values.opac.port }}
|
|
pathType: ImplementationSpecific |