Guest User

Untitled

a guest
Aug 19th, 2025
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.84 KB | None | 0 0
  1. piderunderurbed@raspberrypi:~/k8s $ cat jellyfin.yaml
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: jellyfin
  6. annotations:
  7. keel.sh/policy: force
  8. keel.sh/trigger: poll
  9. keel.sh/pollSchedule: "@every 5m"
  10. spec:
  11. replicas: 1
  12. selector:
  13. matchLabels:
  14. app: jellyfin
  15. template:
  16. metadata:
  17. labels:
  18. app: jellyfin
  19. spec:
  20. nodeSelector:
  21. kubernetes.io/hostname: hostnuc
  22. dnsPolicy: "None"
  23. dnsConfig:
  24. nameservers:
  25. - 8.8.8.8
  26. - 1.1.1.1
  27. containers:
  28. - name: jellyfin
  29. image: jellyfin/jellyfin:latest
  30. securityContext:
  31. runAsUser: 1000
  32. runAsGroup: 1000
  33. ports:
  34. - containerPort: 8096
  35. #env:
  36. # - name: JELLYFIN_PublishedServerUrl
  37. # value: http://jellyfin.spidershomelab.xyz
  38. volumeMounts:
  39. - name: config
  40. mountPath: /config
  41. - name: cache
  42. mountPath: /cache
  43. - name: media
  44. mountPath: /media
  45. volumes:
  46. - name: config
  47. hostPath:
  48. path: /home/spiderunderurbed/jellyfin/config
  49. type: DirectoryOrCreate
  50. - name: cache
  51. hostPath:
  52. path: /home/spiderunderurbed/jellyfin/cache
  53. type: DirectoryOrCreate
  54. - name: media
  55. hostPath:
  56. path: /mnt/media/jellyfin/media
  57. type: DirectoryOrCreate
  58.  
  59. ---
  60. apiVersion: v1
  61. kind: Service
  62. metadata:
  63. name: jellyfin
  64. spec:
  65. selector:
  66. app: jellyfin
  67. ports:
  68. - name: http
  69. protocol: TCP
  70. port: 8096
  71. targetPort: 8096
  72. type: ClusterIP
  73. ---
  74. apiVersion: networking.k8s.io/v1
  75. kind: Ingress
  76. metadata:
  77. name: jellyfin-ingress
  78. annotations:
  79. # traefik.ingress.kubernetes.io/router.entrypoints: web
  80. traefik.ingress.kubernetes.io/router.entrypoints: websecure
  81. traefik.ingress.kubernetes.io/router.tls: "true"
  82. # traefik.ingress.kubernetes.io/router.middlewares: default-nextcloud-redirect@kubernetescrd
  83. spec:
  84. ingressClassName: traefik
  85. rules:
  86. - host: jellyfin.spidershomelab.xyz
  87. http:
  88. paths:
  89. - path: /
  90. pathType: Prefix
  91. backend:
  92. service:
  93. name: jellyfin
  94. port:
  95. number: 8096
  96. ---
  97. apiVersion: traefik.io/v1alpha1
  98. kind: IngressRoute
  99. metadata:
  100. name: jellyfin-route
  101. spec:
  102. entryPoints:
  103. - web
  104. routes:
  105. - match: >-
  106. Host(`jellyfin.spidershomelab.xyz`)
  107. || (Host(`192.168.0.22`) && PathPrefix(`/jellyfin`))
  108. || (Host(`192.168.68.77`) && PathPrefix(`/jellyfin`))
  109. || (Host(`192.168.1.22`) && PathPrefix(`/jellyfin`))
  110. kind: Rule
  111. services:
  112. - name: jellyfin
  113. port: 8096
  114. ---
  115.  
Advertisement
Add Comment
Please, Sign In to add comment