apiVersion: apps/v1 kind: Deployment metadata: name: transmission spec: strategy: type: Recreate selector: matchLabels: app: transmission template: metadata: labels: app: transmission spec: volumes: - name: config hostPath: path: /data/transmission/config - name: downloads hostPath: path: /data/transmission/downloads - name: watch hostPath: path: /data/transmission/watch containers: - name: transmission image: envFrom: - configMapRef: name: transmission resources: limits: memory: "128Mi" cpu: "500m" ports: - containerPort: 9091 name: web - containerPort: 51413 name: s - containerPort: 51413 protocol: UDP name: s-u volumeMounts: - mountPath: /config name: config - mountPath: /downloads 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: dockerproxy.com/bytemark/webdav resources: limits: memory: "128Mi" cpu: "100m" ports: - containerPort: 80 envFrom: - configMapRef: name: webdav - secretRef: name: webdav volumeMounts: - name: file mountPath: /var/lib/dav/data