123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- ---
- apiVersion: v1
- kind: Namespace
- metadata:
- name: plex
- ---
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: jellyfin
- namespace: plex
- spec:
- strategy:
- type: Recreate
- selector:
- matchLabels:
- app: jellyfin
- replicas: 1
- template:
- metadata:
- labels:
- app: jellyfin
- annotations:
- backup.velero.io/backup-volumes-excludes: media,tmpfs
- spec:
- containers:
- - name: jellyfin
- image: jellyfin/jellyfin:10.9.8
- ports:
- - containerPort: 8096
- name: http-web-svc
- volumeMounts:
- - mountPath: "/config"
- name: config
- - mountPath: "/media"
- name: media
- #- mountPath: "/transcodes"
- # name: tmpfs
- # Quicksync
- - name: "render-device"
- mountPath: "/dev/dri/renderD128"
- env:
- - name: PUID
- value: "1000"
- - name: PGID
- value: "1000"
- ## NVIDIA
- #- name: NVIDIA_DRIVER_CAPABILITIES
- # value: "all"
- # Quicksync
- securityContext:
- privileged: true
- livenessProbe:
- httpGet:
- path: /web/index.html
- port: 8096
- failureThreshold: 5
- initialDelaySeconds: 10
- periodSeconds: 30
- timeoutSeconds: 10
- ## NVIDIA
- #resources:
- # limits:
- # nvidia.com/gpu: 1
- affinity:
- nodeAffinity:
- requiredDuringSchedulingIgnoredDuringExecution:
- nodeSelectorTerms:
- - matchExpressions:
- - key: gpu-node
- operator: In
- values:
- - "true"
- volumes:
- - name: config
- persistentVolumeClaim:
- claimName: jellyfin-config-pvc
- - name: media
- persistentVolumeClaim:
- claimName: media2-pvc
- - name: tmpfs
- emptyDir:
- medium: Memory
- sizeLimit: 12Gi
- # Quicksync
- - name: "render-device"
- hostPath:
- path: "/dev/dri/renderD128"
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: jellyfin-service
- namespace: plex
- spec:
- selector:
- app: jellyfin
- type: ClusterIP
- ports:
- - name: jellyfin-web-port
- protocol: TCP
- port: 8096
- targetPort: http-web-svc
- ---
- apiVersion: traefik.containo.us/v1alpha1
- kind: IngressRoute
- metadata:
- name: jellyfin
- namespace: plex
- spec:
- entryPoints:
- - websecure
- routes:
- - kind: Rule
- match: Host(`jellyfin.jibby.org`)
- services:
- - kind: Service
- name: jellyfin-service
- port: 8096
|