673d186de8
Running the HA build needs Redis, PostgreSQL and shared transcode storage wired together, which is a lot of manifests to keep in sync by hand. - add a chart deploying the server as a StatefulSet with a PodDisruptionBudget - ship optional Redis and PostgreSQL dependencies and a runtime config ConfigMap - template shared media, config and transcode volume claims - add ingress and ServiceMonitor templates
22 lines
607 B
YAML
22 lines
607 B
YAML
{{- if .Values.postgresql.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "jellyfin-ha.postgres.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "jellyfin-ha.labels" . | nindent 4 }}
|
|
app.kubernetes.io/component: database
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app.kubernetes.io/name: {{ include "jellyfin-ha.name" . }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
app.kubernetes.io/component: database
|
|
ports:
|
|
- name: postgres
|
|
port: {{ .Values.postgresql.service.port }}
|
|
targetPort: postgres
|
|
protocol: TCP
|
|
{{- end }}
|