helm/transmission/deployment.yaml
Sense T 2652ec12fd 1
2024-02-22 16:36:42 +08:00

85 lines
1.8 KiB
YAML

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
---
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