From cbe0116dc194c175ab3142c0cc5424a001175e04 Mon Sep 17 00:00:00 2001 From: Ariel Sosnovsky Date: Tue, 2 Jan 2024 15:43:09 -0500 Subject: [PATCH] Added jellyplex --- k8s/apps/videohosting/templates/sts-services.yaml | 8 +++++++- k8s/apps/videohosting/values.yaml | 13 +++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/k8s/apps/videohosting/templates/sts-services.yaml b/k8s/apps/videohosting/templates/sts-services.yaml index 8090af9..2eafe19 100644 --- a/k8s/apps/videohosting/templates/sts-services.yaml +++ b/k8s/apps/videohosting/templates/sts-services.yaml @@ -10,9 +10,10 @@ data: PGID: "1000" TZ: {{ $.Values.global.timezone }} {{- range $envName, $envValue := ($v.envVars | default (dict )) }} - {{ $envName }}: "{{$envValue}}" + {{ $envName }}: "{{tpl $envValue $}}" {{ end }} +{{ if $v.disableSVC }} --- kind: Service apiVersion: v1 @@ -37,6 +38,7 @@ spec: protocol: UDP {{ end }} {{- end }} +{{ end }} --- apiVersion: apps/v1 kind: StatefulSet @@ -88,6 +90,7 @@ spec: name: {{$k}}-envs resources: {{- $v.podResources | toYaml | nindent 12 }} + {{ if $v.ports}} ports: {{ range $portName, $portValue := $v.ports.tcp }} - containerPort: {{ $portValue }} @@ -100,11 +103,13 @@ spec: protocol: UDP {{ end }} {{ end }} + {{ end }} volumeMounts: - name: config mountPath: /config - name: torrents mountPath: /torrents + {{- if $v.health }} {{- if $v.health.liveness }} livenessProbe: httpGet: @@ -131,6 +136,7 @@ spec: initialDelaySeconds: 10 failureThreshold: 10 timeoutSeconds: 30 + {{ end }} volumes: - name: torrents nfs: diff --git a/k8s/apps/videohosting/values.yaml b/k8s/apps/videohosting/values.yaml index dc3ca25..0b36afb 100644 --- a/k8s/apps/videohosting/values.yaml +++ b/k8s/apps/videohosting/values.yaml @@ -139,6 +139,19 @@ arrs: DisabledForLocalAddresses services: + jellyplex: + repo: "luigi311/jellyplex-watched" + tag: "latest" + envVars: + PLEX_BASEURL: "plex.{{.Release.Namespace}}.svc.cluster.local:32400" + JELLYFIN_BASEURL: "jellyfin.{{.Release.Namespace}}.svc.cluster.local:8096" + SSL_BYPASS: "True" + podResources: + limits: + memory: "500M" + requests: + cpu: 50m + memory: "500M" jackett: disabled: true repo: lscr.io/linuxserver/jackett