This commit is contained in:
Sense T 2024-02-19 21:36:44 +08:00
parent 4896336043
commit d03b2848bd
3 changed files with 56 additions and 0 deletions

View File

@ -48,3 +48,35 @@ spec:
name: downloads
- mountPath: /watch
name: watch
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: webdav
spec:
selector:
matchLabels:
app: webdav
template:
metadata:
labels:
app: webdav
spec:
volumes:
- name: file
hostPath:
path: /data/transmission/downloads
containers:
- name: webdav
image: bytemark/webdav
resources:
limits:
memory: "64Mi"
cpu: "100m"
ports:
- containerPort: 80
envFrom:
- configMapRef:
name: webdav
- secretRef:
name: webdav

View File

@ -15,6 +15,14 @@ configMapGenerator:
- config/USER
- config/PGID
- config/PUID
- name: webdav
files:
- config/AUTH_TYPE
- config/USERNAME
secretGenerator:
- name: webdav
files:
- config/PASSWORD
images:
- name: <Image>
newName: linuxserver/transmission

View File

@ -19,3 +19,19 @@ spec:
targetPort: s
protocol: TCP
name: torrent
---
apiVersion: v1
kind: Service
metadata:
name: webdav
spec:
selector:
app: webdav
ports:
- port: 9092
targetPort: 80
type: LoadBalancer
ipFamilyPolicy: PreferDualStack
ipFamilies:
- IPv4
- IPv6