78 lines
1.9 KiB
YAML
78 lines
1.9 KiB
YAML
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
|
|
image: docker.io/jellyfin/jellyfin:10.8.9
|
|
imagePullPolicy: Always
|
|
name: jellyfin
|
|
ports:
|
|
- containerPort: 8096
|
|
name: web
|
|
protocol: TCP
|
|
- containerPort: 1900
|
|
name: dlna
|
|
protocol: UDP
|
|
volumeMounts:
|
|
- mountPath: /data2/media
|
|
name: runningseries
|
|
- mountPath: /films
|
|
name: films
|
|
- mountPath: /config
|
|
name: jellyfin-config
|
|
- mountPath: /music
|
|
name: music
|
|
- mountPath: /oldbigseries
|
|
name: oldseries
|
|
- mountPath: /config/transcodes
|
|
name: transcodes
|
|
dnsPolicy: ClusterFirst
|
|
terminationGracePeriodSeconds: 30
|
|
volumes:
|
|
- persistentVolumeClaim:
|
|
claimName: smb-series
|
|
name: runningseries
|
|
- name: jellyfin-config
|
|
persistentVolumeClaim:
|
|
claimName: jellyfin-config
|
|
- name: transcodes
|
|
persistentVolumeClaim:
|
|
claimName: jellyfin-transcodes
|
|
- persistentVolumeClaim:
|
|
claimName: smb-music
|
|
name: music
|
|
- persistentVolumeClaim:
|
|
claimName: smb-films
|
|
name: films
|
|
- persistentVolumeClaim:
|
|
claimName: smb-oldseries
|
|
name: oldseries
|