51 lines
1.1 KiB
YAML
51 lines
1.1 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
|