From d03b2848bdb729f918477eadfa4c4c0642c72477 Mon Sep 17 00:00:00 2001 From: Sense T Date: Mon, 19 Feb 2024 21:36:44 +0800 Subject: [PATCH] webdav --- transmission/deployment.yaml | 32 ++++++++++++++++++++++++++++++++ transmission/kustomization.yaml | 8 ++++++++ transmission/services.yaml | 16 ++++++++++++++++ 3 files changed, 56 insertions(+) diff --git a/transmission/deployment.yaml b/transmission/deployment.yaml index 5250edc..878d2e7 100644 --- a/transmission/deployment.yaml +++ b/transmission/deployment.yaml @@ -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 diff --git a/transmission/kustomization.yaml b/transmission/kustomization.yaml index a3769ff..1dd27dc 100644 --- a/transmission/kustomization.yaml +++ b/transmission/kustomization.yaml @@ -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: newName: linuxserver/transmission diff --git a/transmission/services.yaml b/transmission/services.yaml index 6c638f6..e414e4c 100644 --- a/transmission/services.yaml +++ b/transmission/services.yaml @@ -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 \ No newline at end of file