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