update at 2024-03-08 10:38:16
parent
019d254971
commit
a9149ce0e1
|
@ -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
|
|
@ -0,0 +1,37 @@
|
|||
# 网盘挂载工具:alist
|
||||
|
||||
## 为什么需要 alist ?
|
||||
|
||||
网上有海量的视频资源都通过网盘共享,我们可以转存到自己网盘,然后再通过 alist 挂载到路由器,直接在线观看网盘里的视频,如果网盘限速或宽带不够,也可以结合 aria2 将网盘里的文件离线下载到路由器本地。
|
||||
|
||||
## 开源项目
|
||||
|
||||
alist 的项目地址:https://github.com/alist-org/alist
|
||||
|
||||
## 目录结构
|
||||
|
||||
```txt
|
||||
alist
|
||||
├── daemonset.yaml
|
||||
└── kustomization.yaml
|
||||
```
|
||||
|
||||
## 准备 daemonset.yaml
|
||||
|
||||
<FileBlock showLineNumbers title="daemonset.yaml" file="home-network/alist.yaml" />
|
||||
|
||||
## 准备 kustomization.yaml
|
||||
|
||||
```txt
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- daemonset.yaml
|
||||
|
||||
namespace: default
|
||||
```
|
||||
|
||||
## 访问 Alist
|
||||
|
||||
访问入口:http://<路由器内网 IP>:5244/
|
|
@ -545,6 +545,7 @@ const sidebars: SidebarsConfig = {
|
|||
'cases/home-network/nfs',
|
||||
'cases/home-network/samba',
|
||||
'cases/home-network/aria2',
|
||||
'cases/home-network/alist',
|
||||
]
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue