Files
homelab-v/k8s/apps/media/jellyfin/deployment.yaml
T
Vegard Hagen 3a77de4332 fix(jellyfin): change cache to ephemeral storage
Using Memory apparently doesn't work anymore,
getting an error message:
`System.InvalidOperationException: The path  has insufficient free space. Required: at least 2GB.`

Signed-off-by: Vegard Hagen <[email protected]>
2025-11-02 20:03:23 +01:00

69 lines
1.7 KiB
YAML

kind: Deployment
apiVersion: apps/v1
metadata:
name: jellyfin
namespace: jellyfin
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: jellyfin
template:
spec:
nodeSelector:
topology.kubernetes.io/zone: euclid
securityContext:
runAsNonRoot: true
runAsUser: 2501
runAsGroup: 2501
fsGroup: 2501
fsGroupChangePolicy: OnRootMismatch
supplementalGroups: [ 44, 104 ]
seccompProfile:
type: RuntimeDefault
containers:
- name: jellyfin
image: ghcr.io/jellyfin/jellyfin:10.11.0 # renovate: docker=ghcr.io/jellyfin/jellyfin
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop: [ "ALL" ]
resources:
requests:
cpu: 500m
memory: 2Gi
limits:
cpu: 6000m
memory: 6Gi
gpu.intel.com/i915: 1000m
envFrom:
- configMapRef:
name: jellyfin-env
ports:
- name: http
containerPort: 8096
volumeMounts:
- name: config
mountPath: /config
- name: media
mountPath: /mnt/media
- name: cache
mountPath: /cache
- name: tmp
mountPath: /tmp
volumes:
- name: config
persistentVolumeClaim:
claimName: jellyfin-config
- name: media
nfs:
server: 192.168.1.117
path: /mnt/pool-0/data/media
- name: cache
emptyDir: { }
- name: tmp
emptyDir: { }