73 lines
1.8 KiB
YAML
73 lines
1.8 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
annotations:
|
|
kompose.cmd: kompose convert -f compose-yarr.yaml
|
|
kompose.version: 1.38.0 (HEAD)
|
|
labels:
|
|
io.kompose.service: sonarr
|
|
name: sonarr
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
io.kompose.service: sonarr
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
kompose.cmd: kompose convert -f compose-yarr.yaml
|
|
kompose.version: 1.38.0 (HEAD)
|
|
labels:
|
|
io.kompose.service: sonarr
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: PGID
|
|
value: "1000"
|
|
- name: PUID
|
|
value: "1000"
|
|
- name: TZ
|
|
value: America/New_York
|
|
image: ghcr.io/hotio/sonarr:latest
|
|
name: sonarr
|
|
ports:
|
|
- containerPort: 8989
|
|
protocol: TCP
|
|
name: web-ui
|
|
volumeMounts:
|
|
- mountPath: /config
|
|
name: sonarr-config
|
|
- mountPath: /data
|
|
name: sonarr-data
|
|
- mountPath: /downloads
|
|
name: sonarr-downloads
|
|
restartPolicy: Always
|
|
volumes:
|
|
- name: sonarr-config
|
|
persistentVolumeClaim:
|
|
claimName: sonarr-config-pvc
|
|
- name: sonarr-data
|
|
nfs:
|
|
server: robin.home.nest
|
|
path: /yarr
|
|
- name: sonarr-downloads
|
|
nfs:
|
|
server: robin.home.nest
|
|
path: /yarr/downloads
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: sonarr-config-pvc
|
|
labels:
|
|
recurring-job.longhorn.io/source: "enabled"
|
|
recurring-job-group.longhorn.io/app-config-group: "enabled"
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
storageClassName: longhorn
|
|
resources:
|
|
requests:
|
|
storage: 150Mi
|