2023-12-15 14:05:14 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: jellyfin
|
|
|
|
name: jellyfin
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: jellyfin
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: jellyfin
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- env:
|
|
|
|
- name: NODE_NAME
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
apiVersion: v1
|
|
|
|
fieldPath: spec.nodeName
|
|
|
|
- name: POD_NAME
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
apiVersion: v1
|
|
|
|
fieldPath: metadata.name
|
|
|
|
- name: POD_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
apiVersion: v1
|
|
|
|
fieldPath: metadata.namespace
|
2024-07-12 13:33:18 +00:00
|
|
|
image: docker.io/jellyfin/jellyfin:10.9.7
|
2023-12-15 14:05:14 +00:00
|
|
|
imagePullPolicy: Always
|
|
|
|
name: jellyfin
|
|
|
|
ports:
|
|
|
|
- containerPort: 8096
|
|
|
|
name: web
|
|
|
|
protocol: TCP
|
|
|
|
- containerPort: 1900
|
|
|
|
name: dlna
|
|
|
|
protocol: UDP
|
2024-02-21 15:35:47 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
gpu.intel.com/i915: "1"
|
|
|
|
requests:
|
|
|
|
gpu.intel.com/i915: "1"
|
2023-12-15 14:05:14 +00:00
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /data2/media
|
|
|
|
name: runningseries
|
|
|
|
- mountPath: /films
|
|
|
|
name: films
|
|
|
|
- mountPath: /config
|
|
|
|
name: jellyfin-config
|
|
|
|
- mountPath: /music
|
|
|
|
name: music
|
|
|
|
- mountPath: /oldbigseries
|
|
|
|
name: oldseries
|
2023-12-19 21:26:59 +00:00
|
|
|
- mountPath: /config/transcodes
|
|
|
|
name: transcodes
|
2024-02-20 20:10:07 +00:00
|
|
|
- mountPath: /dev/dri
|
|
|
|
name: dev-dri
|
2023-12-15 14:05:14 +00:00
|
|
|
dnsPolicy: ClusterFirst
|
2024-02-20 20:08:28 +00:00
|
|
|
nodeSelector:
|
2024-02-21 15:39:38 +00:00
|
|
|
intel.feature.node.kubernetes.io/gpu: "true"
|
2023-12-15 14:05:14 +00:00
|
|
|
terminationGracePeriodSeconds: 30
|
|
|
|
volumes:
|
|
|
|
- persistentVolumeClaim:
|
|
|
|
claimName: smb-series
|
|
|
|
name: runningseries
|
|
|
|
- name: jellyfin-config
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: jellyfin-config
|
2023-12-19 21:26:59 +00:00
|
|
|
- name: transcodes
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: jellyfin-transcodes
|
2023-12-15 14:05:14 +00:00
|
|
|
- persistentVolumeClaim:
|
|
|
|
claimName: smb-music
|
|
|
|
name: music
|
|
|
|
- persistentVolumeClaim:
|
|
|
|
claimName: smb-films
|
|
|
|
name: films
|
|
|
|
- persistentVolumeClaim:
|
|
|
|
claimName: smb-oldseries
|
|
|
|
name: oldseries
|
2024-02-20 20:10:07 +00:00
|
|
|
- hostPath:
|
|
|
|
path: /dev/dri
|
|
|
|
type: Directory
|
|
|
|
name: dev-dri
|