k3s-cluster/cluster/apps/download/sonarr/deployment.yaml

42 lines
No EOL
871 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: sonarr
namespace: download
labels:
app: sonarr
kubernetes.io/name: "sonarr"
spec:
replicas: 1
selector:
matchLabels:
app: sonarr
template:
metadata:
labels:
app: sonarr
spec:
containers:
- name: sonarr
image: linuxserver/sonarr
imagePullPolicy: Always
ports:
- containerPort: 8989
env:
- name: PGID
value: "1000"
- name: PUID
value: "1000"
volumeMounts:
- name: sonarr
mountPath: /config
- name: sonarr-download-storage
mountPath: /storage
volumes:
- name: sonarr
hostPath:
path: /mnt/MainPool/Kubernetes/sonarr
- name: sonarr-download-storage
hostPath:
path: /mnt/MainPool/Media