update at 2024-03-08 14:26:58

pull/153/head
roc 2024-03-08 14:26:58 +08:00
parent a3d8158c59
commit 0757dfc792
3 changed files with 100 additions and 0 deletions

View File

@ -0,0 +1,62 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
app: jellyfin
name: jellyfin
namespace: default
spec:
selector:
matchLabels:
app: jellyfin
template:
metadata:
labels:
app: jellyfin
spec:
terminationGracePeriodSeconds: 1
containers:
- image: jellyfin/jellyfin:latest
imagePullPolicy: IfNotPresent
name: jellyfin
resources:
limits:
cpu: "1"
memory: 1Gi
requests:
cpu: 1m
memory: 16Mi
env:
- name: TZ
value: Asia/Shanghai
securityContext:
runAsUser: 0
runAsGroup: 0
privileged: true
volumeMounts:
- mountPath: /dev/dri
name: dri
- mountPath: /data/media
name: media
- mountPath: /config
name: config
dnsPolicy: Default
hostNetwork: true
restartPolicy: Always
volumes:
- name: dri
hostPath:
path: /dev/dri
- name: config
hostPath:
path: /data/jellyfin/config
type: DirectoryOrCreate
- name: media
hostPath:
path: /data/media
type: DirectoryOrCreate
updateStrategy:
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
type: RollingUpdate

View File

@ -0,0 +1,37 @@
# 家庭影院服务Jellyfin
## 概述
如果需要在家中搭建一个家庭影院Jellyfin 是一个不错的选择。它是一个免费的软件,可以让你在家中的任何设备上观看你的媒体文件。只要将视频文件放入指定目录下,它可以自动搜刮相关的海报、简介等信息,可以在各种设备上播放,包括电视、手机、平板电脑等,所有平台都可以同步播放记录和进度,自动接着之前没看完的继续看。
## 开源项目
Jellyfin 的项目地址是https://github.com/jellyfin/jellyfin
## 目录结构
```txt
jellyfin
├── daemonset.yaml
└── kustomization.yaml
```
## 准备 daemonset.yaml
<FileBlock showLineNumbers title="daemonset.yaml" file="home-network/jellyfin.yaml" />
## 准备 kustomization.yaml
```txt
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- daemonset.yaml
namespace: default
```
## 访问 Jellyfin
访问入口http://`路由器内网 IP`:8096/

View File

@ -548,6 +548,7 @@ const sidebars: SidebarsConfig = {
'cases/home-network/aria2',
'cases/home-network/alist',
'cases/home-network/filebrowser',
'cases/home-network/jellyfin',
]
}
],