Jellyfin
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: jellyfin
name: jellyfin
namespace: jellyfin
spec:
progressDeadlineSeconds: 600
replicas: 1
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
selector:
matchLabels:
app: jellyfin
template:
metadata:
labels:
app: jellyfin
spec:
volumes:
- name: nfs-jellyfin-config
persistentVolumeClaim:
claimName: jellyfin-pvc-config
- name: nfs-jellyfin-data
persistentVolumeClaim:
claimName: jellyfin-pvc-data
runtimeClassName: nvidia
containers:
- env:
- name: JELLYFIN_PublishedServerUrl
value: 10.200.1.212 # The IP number for your jellyfin server (see service config)
- name: PGID
value: "\x54\x53\x53\x51\x55" # < ASCII code for '65541'
- name: PUID
value: "\x49\x48\x50\x57" #< ACII code for '1044'
- name: TZ
value: Europe/Amsterdam
securityContext:
privileged: true # Container must run as privileged inside of the pod, required for hardware acceleration
image: ghcr.io/linuxserver/jellyfin
imagePullPolicy: Always
name: jellyfin
ports:
- containerPort: 8096
name: http-tcp
protocol: TCP
- containerPort: 8920
name: https-tcp
protocol: TCP
- containerPort: 1900
name: dlna-udp
protocol: UDP
- containerPort: 7359
name: discovery-udp
protocol: UDP
#resources: {}
resources:
limits:
nvidia.com/gpu: 1
stdin: true
tty: true
volumeMounts:
- mountPath: /config
name: nfs-jellyfin-config
- mountPath: /data
name: nfs-jellyfin-data
dnsPolicy: ClusterFirst
restartPolicy: AlwayMis à jour