mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 04:59:54 +00:00
58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: jellyfin
|
|
namespace: media
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: jellyfin
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: jellyfin
|
|
spec:
|
|
runtimeClassName: nvidia
|
|
containers:
|
|
- name: jellyfin
|
|
image: lscr.io/linuxserver/jellyfin:latest
|
|
imagePullPolicy: Always
|
|
securityContext:
|
|
privileged: true
|
|
ports:
|
|
- containerPort: 8096
|
|
name: http
|
|
protocol: TCP
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /config
|
|
- mountPath: /data/media
|
|
name: data
|
|
subPath: media
|
|
- name: transcode
|
|
mountPath: /transcode
|
|
- name: cache
|
|
mountPath: /cache
|
|
env:
|
|
- name: NVIDIA_VISIBLE_DEVICES
|
|
value: all
|
|
- name: NVIDIA_DRIVER_CAPABILITIES
|
|
value: all
|
|
resources:
|
|
limits:
|
|
nvidia.com/gpu: 1
|
|
volumes:
|
|
- name: config
|
|
persistentVolumeClaim:
|
|
claimName: jellyfin-config
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: media-data
|
|
- name: transcode
|
|
emptyDir:
|
|
sizeLimit: 50Gi
|
|
- name: cache
|
|
emptyDir:
|
|
medium: Memory
|
|
sizeLimit: 2Gi
|