add initial helm chart values

This commit is contained in:
Justin Kreller
2024-11-15 16:56:01 +01:00
parent 75a5b2879e
commit 74dcdd16d4
9 changed files with 797 additions and 92 deletions

74
templates/ingress.yml Normal file
View File

@@ -0,0 +1,74 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: koha-ingress
namespace: koha-{{ .Values.instance }}
{{ 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: {{ .Values.instance }}-koha
port:
number: {{ .Values.staff.port }}
pathType: ImplementationSpecific
- host: {{ .Values.opac.prefix }}{{ .Values.instance }}{{ .Values.opac.suffix }}{{ .Values.global.domain }}
http:
paths:
- backend:
service:
name: {{ .Values.instance }}-koha
port:
number: {{ .Values.opac.port }}
pathType: ImplementationSpecific
{{ if .Values.sip.enabled }}
- host: {{ .Values.instance }}{{ .Values.sip.suffix }}{{ .Values.global.domain }}
http:
paths:
- backend:
service:
name: {{ .Values.instance }}-sip
port:
number: 6001
{{ end }}
{{ if .Values.ncip.enabled }}
- host: {{ .Values.instance }}{{ .Values.ncip.suffix }}{{ .Values.global.domain }}
http:
paths:
- backend:
service:
name: {{ .Values.instance }}-ncip
port:
number: 3000
pathType: ImplementationSpecific
{{ end }}
{{ if .Values.z3950.enabled }}
- host: {{ .Values.instance }}{{ .Values.z3950.suffix }}{{ .Values.global.domain }}
http:
paths:
- backend:
service:
name: {{ .Values.instance }}-z3950
port:
number: 2100
pathType: ImplementationSpecific
{{ end }}