43 lines
897 B
YAML
43 lines
897 B
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
namespace: jellyfin
|
|
name: jellyfin
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: jellyfin
|
|
serviceName: jellyfin
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: jellyfin
|
|
spec:
|
|
restartPolicy: Always
|
|
terminationGracePeriodSeconds: 60
|
|
nodeSelector:
|
|
gpu: "true"
|
|
containers:
|
|
- name: jellyfin
|
|
image: jellyfin/jellyfin:10.11.9
|
|
ports:
|
|
- containerPort: 8096
|
|
resources:
|
|
limits:
|
|
gpu.intel.com/i915: "1"
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /config
|
|
- name: media
|
|
mountPath: /media
|
|
readOnly: true
|
|
volumes:
|
|
- name: config
|
|
persistentVolumeClaim:
|
|
claimName: jellyfin-pvc
|
|
- name: media
|
|
persistentVolumeClaim:
|
|
claimName: smb-media-pvc
|
|
|