2025-08-25 12:35:36 -05:00
|
|
|
# services/jellyfin/deployment.yaml
|
|
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: jellyfin
|
|
|
|
|
namespace: jellyfin
|
|
|
|
|
labels:
|
|
|
|
|
app: jellyfin
|
|
|
|
|
spec:
|
2025-10-07 23:28:40 -05:00
|
|
|
replicas: 1
|
2025-09-02 19:46:21 -05:00
|
|
|
strategy:
|
2025-09-02 20:12:29 -05:00
|
|
|
type: RollingUpdate
|
|
|
|
|
rollingUpdate:
|
|
|
|
|
maxSurge: 0
|
|
|
|
|
maxUnavailable: 1
|
2025-08-25 12:35:36 -05:00
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: jellyfin
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: jellyfin
|
|
|
|
|
spec:
|
|
|
|
|
nodeSelector:
|
|
|
|
|
jellyfin: "true"
|
2025-09-18 08:52:58 -05:00
|
|
|
securityContext:
|
2025-09-18 09:38:46 -05:00
|
|
|
runAsUser: 1000
|
2025-09-18 08:52:58 -05:00
|
|
|
fsGroup: 65532
|
|
|
|
|
fsGroupChangePolicy: OnRootMismatch
|
|
|
|
|
runAsGroup: 65532
|
2025-08-25 12:35:36 -05:00
|
|
|
runtimeClassName: nvidia
|
|
|
|
|
containers:
|
|
|
|
|
- name: jellyfin
|
2025-09-02 07:30:39 -05:00
|
|
|
image: docker.io/jellyfin/jellyfin:10.10.7
|
2025-08-25 12:35:36 -05:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
|
ports:
|
|
|
|
|
- name: http
|
|
|
|
|
containerPort: 8096
|
|
|
|
|
env:
|
|
|
|
|
- name: NVIDIA_DRIVER_CAPABILITIES
|
|
|
|
|
value: "compute,video,utility"
|
|
|
|
|
- name: JELLYFIN_PublishedServerUrl
|
|
|
|
|
value: "https://stream.bstein.dev"
|
2025-09-18 08:52:58 -05:00
|
|
|
- name: PUID
|
|
|
|
|
value: "1000"
|
|
|
|
|
- name: PGID
|
|
|
|
|
value: "65532"
|
|
|
|
|
- name: UMASK
|
|
|
|
|
value: "002"
|
2025-08-25 12:35:36 -05:00
|
|
|
resources:
|
|
|
|
|
limits:
|
|
|
|
|
nvidia.com/gpu: 1
|
|
|
|
|
# cpu: "4"
|
|
|
|
|
# memory: 8Gi
|
|
|
|
|
requests:
|
|
|
|
|
nvidia.com/gpu: 1
|
|
|
|
|
cpu: "500m"
|
|
|
|
|
memory: 1Gi
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- name: config
|
|
|
|
|
mountPath: /config
|
|
|
|
|
- name: cache
|
|
|
|
|
mountPath: /cache
|
|
|
|
|
- name: media
|
|
|
|
|
mountPath: /media
|
|
|
|
|
securityContext:
|
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
|
volumes:
|
|
|
|
|
- name: config
|
|
|
|
|
persistentVolumeClaim:
|
2025-09-02 19:46:21 -05:00
|
|
|
claimName: jellyfin-config-astreae
|
2025-08-25 12:35:36 -05:00
|
|
|
- name: cache
|
|
|
|
|
persistentVolumeClaim:
|
2025-09-02 19:46:21 -05:00
|
|
|
claimName: jellyfin-cache-astreae
|
2025-08-25 12:35:36 -05:00
|
|
|
- name: media
|
|
|
|
|
persistentVolumeClaim:
|
2025-10-07 23:26:27 -05:00
|
|
|
claimName: jellyfin-media-asteria-new
|