Add Sonarr deployment, PVC, and service configurations
This commit is contained in:
49
clusters/default/arr-stack/sonarr/sonarr-deployment.yml
Normal file
49
clusters/default/arr-stack/sonarr/sonarr-deployment.yml
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: sonarr
|
||||||
|
namespace: arr-stack
|
||||||
|
spec:
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: sonarr
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: sonarr
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: sonarr
|
||||||
|
image: lscr.io/linuxserver/sonarr:4.0.15
|
||||||
|
ports:
|
||||||
|
- containerPort: 8989
|
||||||
|
env:
|
||||||
|
- name: PUID
|
||||||
|
value: "1000"
|
||||||
|
- name: PGID
|
||||||
|
value: "1000"
|
||||||
|
- name: TZ
|
||||||
|
value: "Asia/Kolkata"
|
||||||
|
volumeMounts:
|
||||||
|
- name: config
|
||||||
|
mountPath: /config
|
||||||
|
- name: tv
|
||||||
|
mountPath: /tv
|
||||||
|
- name: downloads
|
||||||
|
mountPath: /downloads
|
||||||
|
volumes:
|
||||||
|
- name: config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: sonarr-longhorn
|
||||||
|
- name: downloads
|
||||||
|
nfs:
|
||||||
|
server: 10.0.0.123
|
||||||
|
path: /merge/downloads
|
||||||
|
- name: tv
|
||||||
|
nfs:
|
||||||
|
server: 10.0.0.123
|
||||||
|
path: /merge/series
|
||||||
14
clusters/default/arr-stack/sonarr/sonarr-pvc.yml
Normal file
14
clusters/default/arr-stack/sonarr/sonarr-pvc.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: sonarr-longhorn
|
||||||
|
namespace: arr-stack
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
volumeMode: Filesystem
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 5Gi
|
||||||
|
storageClassName: longhorn
|
||||||
13
clusters/default/arr-stack/sonarr/sonarr-svc.yml
Normal file
13
clusters/default/arr-stack/sonarr/sonarr-svc.yml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: sonarr-service
|
||||||
|
namespace: arr-stack
|
||||||
|
spec:
|
||||||
|
type: LoadBalancer
|
||||||
|
selector:
|
||||||
|
app: sonarr
|
||||||
|
ports:
|
||||||
|
- port: 8989
|
||||||
|
targetPort: 8989
|
||||||
Reference in New Issue
Block a user