2021-04-13 19:43:27 +00:00
|
|
|
image:
|
2023-11-17 10:22:57 +00:00
|
|
|
repository: docker.io/jellyfin/jellyfin
|
2021-04-13 19:43:27 +00:00
|
|
|
pullPolicy: IfNotPresent
|
2023-11-30 12:18:28 +00:00
|
|
|
tag: 10.8.13@sha256:05a9734d7e83086b957c5b7a16cbb5a60b5bb8d113ffb953e57547359dd05140
|
2023-06-08 09:28:42 +00:00
|
|
|
broadcastProxyImage:
|
2023-11-18 10:48:35 +00:00
|
|
|
repository: docker.io/alpine/socat
|
2023-06-08 09:28:42 +00:00
|
|
|
pullPolicy: IfNotPresent
|
2024-04-06 06:17:12 +00:00
|
|
|
tag: 1.8.0.0@sha256:6fe6184b02142a660f5ee04894e0006c008df4e69fdd630b0e574394fe587f3c
|
2021-05-19 13:12:45 +00:00
|
|
|
service:
|
2021-04-13 19:43:27 +00:00
|
|
|
main:
|
2021-05-19 13:12:45 +00:00
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
port: 8096
|
2021-11-06 21:55:18 +00:00
|
|
|
targetPort: 8096
|
2023-06-08 09:28:42 +00:00
|
|
|
autodiscovery:
|
|
|
|
enabled: true
|
|
|
|
ports:
|
|
|
|
autodiscovery:
|
|
|
|
enabled: true
|
|
|
|
protocol: udp
|
|
|
|
port: 7359
|
|
|
|
targetPort: 7359
|
2021-04-13 19:43:27 +00:00
|
|
|
persistence:
|
|
|
|
config:
|
|
|
|
enabled: true
|
|
|
|
mountPath: "/config"
|
2022-02-06 12:17:38 +00:00
|
|
|
cache:
|
|
|
|
enabled: true
|
|
|
|
mountPath: "/cache"
|
|
|
|
type: "emptyDir"
|
2022-12-21 23:02:34 +00:00
|
|
|
transcode:
|
|
|
|
enabled: true
|
|
|
|
mountPath: "/config/transcodes"
|
|
|
|
type: "emptyDir"
|
2022-08-08 21:25:02 +00:00
|
|
|
portal:
|
2023-04-11 10:07:17 +00:00
|
|
|
open:
|
|
|
|
enabled: true
|
|
|
|
securityContext:
|
|
|
|
container:
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
workload:
|
|
|
|
main:
|
|
|
|
podSpec:
|
|
|
|
containers:
|
|
|
|
main:
|
|
|
|
env:
|
2023-12-20 15:23:14 +00:00
|
|
|
JELLYFIN_PublishedServerUrl: "{{ $.Values.chartContext.appUrl }}"
|
2023-06-08 09:28:42 +00:00
|
|
|
broadcastproxy:
|
|
|
|
enabled: false
|
|
|
|
type: DaemonSet
|
|
|
|
podSpec:
|
|
|
|
hostNetwork: true
|
|
|
|
# Proxy doesn't seem to respect the TERM signal, so by default
|
|
|
|
# this ends up just hanging until the default grace period ends.
|
|
|
|
# This is unnecesary since this workload only proxies autodiscovery
|
|
|
|
# messages.
|
|
|
|
terminationGracePeriodSeconds: 3
|
|
|
|
containers:
|
|
|
|
broadcastproxy:
|
|
|
|
enabled: true
|
|
|
|
primary: true
|
|
|
|
imageSelector: broadcastProxyImage
|
|
|
|
securityContext:
|
|
|
|
readOnlyRootFilesystem: true
|
|
|
|
command: ["/bin/sh"]
|
|
|
|
# Quite a lot going on here:
|
|
|
|
# - Resolve Jellyfin's autodiscovery service IP from its FQDN via getent hosts
|
|
|
|
# - Export the IP to `$TARGET_IP`
|
|
|
|
# - Check `$TARGET_IP` is not empty (so we can crash if it is - will help to detect templating errors)
|
|
|
|
# - Touch `/tmp/healty` to use with the readiness, liveness and startup probes
|
|
|
|
# - Start socat in proxy mode
|
|
|
|
# - On exit remove `/tmp/healthy`
|
2023-11-22 08:24:05 +00:00
|
|
|
args:
|
|
|
|
- "-c"
|
|
|
|
- 'export TARGET_IP=$(getent hosts ''{{ printf "%v-autodiscovery" (include "tc.v1.common.lib.chart.names.fullname" $) }}'' | awk ''{ print $1 }'') && [[ ! -z $TARGET_IP ]] && touch /tmp/healthy && socat UDP-LISTEN:7359,fork,reuseaddr,rcvbuf=8096 UDP4-SENDTO:${TARGET_IP}:7359,rcvbuf=8096 ; rm -rf /tmp/healthy'
|
2023-06-08 09:28:42 +00:00
|
|
|
probes:
|
|
|
|
readiness:
|
|
|
|
enabled: true
|
|
|
|
type: exec
|
|
|
|
command:
|
|
|
|
- cat
|
|
|
|
- /tmp/healthy
|
|
|
|
liveness:
|
|
|
|
enabled: true
|
|
|
|
type: exec
|
|
|
|
command:
|
|
|
|
- cat
|
|
|
|
- /tmp/healthy
|
|
|
|
startup:
|
|
|
|
enabled: true
|
|
|
|
type: exec
|
|
|
|
command:
|
|
|
|
- cat
|
|
|
|
- /tmp/healthy
|
|
|
|
# -- enable Jellyfin autodiscovery on LAN
|
|
|
|
autodiscovery:
|
2023-11-17 10:22:57 +00:00
|
|
|
enabled: false
|
2023-11-18 10:48:35 +00:00
|
|
|
updated: true
|