Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- piderunderurbed@raspberrypi:~/k8s $ cat jellyfin.yaml
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: jellyfin
- annotations:
- keel.sh/policy: force
- keel.sh/trigger: poll
- keel.sh/pollSchedule: "@every 5m"
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: jellyfin
- template:
- metadata:
- labels:
- app: jellyfin
- spec:
- nodeSelector:
- kubernetes.io/hostname: hostnuc
- dnsPolicy: "None"
- dnsConfig:
- nameservers:
- - 8.8.8.8
- - 1.1.1.1
- containers:
- - name: jellyfin
- image: jellyfin/jellyfin:latest
- securityContext:
- runAsUser: 1000
- runAsGroup: 1000
- ports:
- - containerPort: 8096
- #env:
- # - name: JELLYFIN_PublishedServerUrl
- # value: http://jellyfin.spidershomelab.xyz
- volumeMounts:
- - name: config
- mountPath: /config
- - name: cache
- mountPath: /cache
- - name: media
- mountPath: /media
- volumes:
- - name: config
- hostPath:
- path: /home/spiderunderurbed/jellyfin/config
- type: DirectoryOrCreate
- - name: cache
- hostPath:
- path: /home/spiderunderurbed/jellyfin/cache
- type: DirectoryOrCreate
- - name: media
- hostPath:
- path: /mnt/media/jellyfin/media
- type: DirectoryOrCreate
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: jellyfin
- spec:
- selector:
- app: jellyfin
- ports:
- - name: http
- protocol: TCP
- port: 8096
- targetPort: 8096
- type: ClusterIP
- ---
- apiVersion: networking.k8s.io/v1
- kind: Ingress
- metadata:
- name: jellyfin-ingress
- annotations:
- # traefik.ingress.kubernetes.io/router.entrypoints: web
- traefik.ingress.kubernetes.io/router.entrypoints: websecure
- traefik.ingress.kubernetes.io/router.tls: "true"
- # traefik.ingress.kubernetes.io/router.middlewares: default-nextcloud-redirect@kubernetescrd
- spec:
- ingressClassName: traefik
- rules:
- - host: jellyfin.spidershomelab.xyz
- http:
- paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: jellyfin
- port:
- number: 8096
- ---
- apiVersion: traefik.io/v1alpha1
- kind: IngressRoute
- metadata:
- name: jellyfin-route
- spec:
- entryPoints:
- - web
- routes:
- - match: >-
- Host(`jellyfin.spidershomelab.xyz`)
- || (Host(`192.168.0.22`) && PathPrefix(`/jellyfin`))
- || (Host(`192.168.68.77`) && PathPrefix(`/jellyfin`))
- || (Host(`192.168.1.22`) && PathPrefix(`/jellyfin`))
- kind: Rule
- services:
- - name: jellyfin
- port: 8096
- ---
Advertisement
Add Comment
Please, Sign In to add comment