jellyfin.yaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. ---
  2. apiVersion: v1
  3. kind: Namespace
  4. metadata:
  5. name: plex
  6. ---
  7. apiVersion: apps/v1
  8. kind: Deployment
  9. metadata:
  10. name: jellyfin
  11. namespace: plex
  12. spec:
  13. selector:
  14. matchLabels:
  15. app: jellyfin
  16. replicas: 1
  17. template:
  18. metadata:
  19. labels:
  20. app: jellyfin
  21. spec:
  22. containers:
  23. - name: jellyfin
  24. image: jellyfin/jellyfin:10.8.5
  25. ports:
  26. - containerPort: 8096
  27. name: http-web-svc
  28. volumeMounts:
  29. - mountPath: "/config"
  30. name: config
  31. - mountPath: "/media"
  32. name: media
  33. - mountPath: "/transcodes"
  34. name: tmpfs
  35. env:
  36. - name: PUID
  37. value: "1000"
  38. - name: PGID
  39. value: "1000"
  40. - name: NVIDIA_DRIVER_CAPABILITIES
  41. value: "all"
  42. livenessProbe:
  43. httpGet:
  44. path: /web/index.html
  45. port: 8096
  46. failureThreshold: 5
  47. initialDelaySeconds: 10
  48. periodSeconds: 30
  49. timeoutSeconds: 10
  50. resources:
  51. limits:
  52. nvidia.com/gpu: 1
  53. affinity:
  54. nodeAffinity:
  55. requiredDuringSchedulingIgnoredDuringExecution:
  56. nodeSelectorTerms:
  57. - matchExpressions:
  58. - key: gpu-node
  59. operator: In
  60. values:
  61. - "true"
  62. volumes:
  63. - name: config
  64. persistentVolumeClaim:
  65. claimName: jellyfin-config-pvc
  66. - name: media
  67. persistentVolumeClaim:
  68. claimName: media2-pvc
  69. - name: tmpfs
  70. emptyDir:
  71. medium: Memory
  72. sizeLimit: 12Gi
  73. ---
  74. apiVersion: v1
  75. kind: Service
  76. metadata:
  77. name: jellyfin-service
  78. namespace: plex
  79. spec:
  80. selector:
  81. app: jellyfin
  82. type: ClusterIP
  83. ports:
  84. - name: jellyfin-web-port
  85. protocol: TCP
  86. port: 8096
  87. targetPort: http-web-svc
  88. ---
  89. apiVersion: traefik.containo.us/v1alpha1
  90. kind: IngressRoute
  91. metadata:
  92. name: jellyfin
  93. namespace: plex
  94. spec:
  95. entryPoints:
  96. - websecure
  97. routes:
  98. - kind: Rule
  99. match: Host(`jellyfin.jibby.org`)
  100. services:
  101. - kind: Service
  102. name: jellyfin-service
  103. port: 8096