diff --git a/codeblock/home-network/alist.yaml b/codeblock/home-network/alist.yaml new file mode 100644 index 0000000..6b69561 --- /dev/null +++ b/codeblock/home-network/alist.yaml @@ -0,0 +1,48 @@ +apiVersion: apps/v1 +kind: DaemonSet +metadata: + labels: + app: alist + name: alist + namespace: default +spec: + selector: + matchLabels: + app: alist + template: + metadata: + labels: + app: alist + spec: + terminationGracePeriodSeconds: 1 + hostAliases: + - hostnames: + - api-cf.nn.ci + ip: 104.21.30.209 + containers: + - image: docker.io/xhofe/alist:v3.32.0 + imagePullPolicy: IfNotPresent + name: alist + env: + - name: PUID + value: "0" + - name: PGID + value: "0" + - name: UMASK + value: "022" + volumeMounts: + - mountPath: /opt/alist/data + name: data + dnsPolicy: Default + hostNetwork: true + restartPolicy: Always + volumes: + - name: data + hostPath: + path: /data/alist + type: DirectoryOrCreate + updateStrategy: + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + type: RollingUpdate diff --git a/content/cases/home-network/alist.md b/content/cases/home-network/alist.md new file mode 100644 index 0000000..d5831bf --- /dev/null +++ b/content/cases/home-network/alist.md @@ -0,0 +1,37 @@ +# 网盘挂载工具:alist + +## 为什么需要 alist ? + +网上有海量的视频资源都通过网盘共享,我们可以转存到自己网盘,然后再通过 alist 挂载到路由器,直接在线观看网盘里的视频,如果网盘限速或宽带不够,也可以结合 aria2 将网盘里的文件离线下载到路由器本地。 + +## 开源项目 + +alist 的项目地址:https://github.com/alist-org/alist + +## 目录结构 + +```txt +alist +├── daemonset.yaml +└── kustomization.yaml +``` + +## 准备 daemonset.yaml + + + +## 准备 kustomization.yaml + +```txt +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - daemonset.yaml + +namespace: default +``` + +## 访问 Alist + +访问入口:http://<路由器内网 IP>:5244/ diff --git a/content/sidebars.ts b/content/sidebars.ts index 29e5ffc..afb104b 100644 --- a/content/sidebars.ts +++ b/content/sidebars.ts @@ -545,6 +545,7 @@ const sidebars: SidebarsConfig = { 'cases/home-network/nfs', 'cases/home-network/samba', 'cases/home-network/aria2', + 'cases/home-network/alist', ] } ],