2024-02-17 14:58:54 +00:00
|
|
|
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: <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
|
2024-02-19 13:36:44 +00:00
|
|
|
---
|
|
|
|
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
|
2024-02-22 08:36:42 +00:00
|
|
|
image: dockerproxy.com/bytemark/webdav
|
2024-02-19 13:36:44 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
2024-02-22 08:36:42 +00:00
|
|
|
memory: "128Mi"
|
2024-02-19 13:36:44 +00:00
|
|
|
cpu: "100m"
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: webdav
|
|
|
|
- secretRef:
|
|
|
|
name: webdav
|
2024-02-22 08:36:42 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: file
|
|
|
|
mountPath: /var/lib/dav/data
|