123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- ---
- 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: 6Gi
- # 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: networking.k8s.io/v1
- kind: Ingress
- metadata:
- name: jellyfin
- namespace: plex
- annotations:
- traefik.ingress.kubernetes.io/router.entrypoints: websecure
- spec:
- rules:
- - host: jellyfin.jibby.org
- http:
- paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: jellyfin-service
- port:
- number: 8096
|