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

143
templates/service.yml Normal file
View File

@@ -0,0 +1,143 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.instance }}-koha
namespace: koha-{{ .Values.instance }}
labels:
run: {{ .Values.instance }}-koha
spec:
type: ClusterIP
ports:
- name: staff
port: {{ .Values.staff.port }}
protocol: TCP
- name: opac
port: {{ .Values.opac.port }}
protocol: TCP
selector:
app: koha
component: apache
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.instance }}-plack
namespace: koha-{{ .Values.instance }}
labels:
run: {{ .Values.instance }}-plack
spec:
type: ClusterIP
ports:
- port: 5000
protocol: TCP
selector:
app: koha
component: plack
{{ if .Values.sip.enabled }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.instance }}-sip
namespace: koha-{{ .Values.instance }}
labels:
run: {{ .Values.instance }}-sip
spec:
type: ClusterIP
ports:
- port: 6001
protocol: TCP
selector:
app: koha
component: sip
{{ end }}
{{ if .Values.ncip.enabled }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.instance }}-ncip
namespace: koha-{{ .Values.instance }}
labels:
run: {{ .Values.instance }}-ncip
spec:
type: ClusterIP
ports:
- port: 3000
protocol: TCP
selector:
app: koha
component: ncip
{{ end }}
{{ if .Values.z3950.enabled }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.instance }}-z3950
namespace: koha-{{ .Values.instance }}
labels:
run: {{ .Values.instance }}-z3950
spec:
type: ClusterIP
ports:
- port: 2100
protocol: TCP
selector:
app: koha
component: z3950
{{ end }}
{{ if and .Values.elasticsearch.enabled (not .Values.elasticsearch.external) }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.instance }}-es
namespace: koha-{{ .Values.instance }}
labels:
run: {{ .Values.instance }}-es
spec:
type: ClusterIP
ports:
- port: 9200
protocol: TCP
selector:
app: koha
component: es
{{ end }}
{{ if not .Values.db.external }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.instance }}-db
namespace: koha-{{ .Values.instance }}
labels:
run: {{ .Values.instance }}-db
spec:
type: ClusterIP
ports:
- port: 3306
protocol: TCP
selector:
app: koha
component: db
{{ end }}
{{ if and .Values.memcached.enabled (not .Values.memcached.external) }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.instance }}-memcached
namespace: koha-{{ .Values.instance }}
labels:
run: {{ .Values.instance }}-memcached
spec:
type: ClusterIP
ports:
- port: 11211
protocol: TCP
selector:
app: koha
component: memcached
{{ end }}