feat(sonarr): add Kubernetes manifests for Sonarr with PostgreSQL backend
Sync HTPC Manifests to GitOps / Sync Manifests to GitOps Repo (push) Successful in 3s
Sync HTPC Manifests to GitOps / Sync Manifests to GitOps Repo (push) Successful in 3s
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: sonarr
|
||||
namespace: htpc
|
||||
labels:
|
||||
app.kubernetes.io/name: sonarr
|
||||
app.kubernetes.io/part-of: htpc
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: sonarr
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: sonarr
|
||||
app.kubernetes.io/name: sonarr
|
||||
app.kubernetes.io/part-of: htpc
|
||||
spec:
|
||||
nodeSelector:
|
||||
kubernetes.io/hostname: vmserver
|
||||
containers:
|
||||
- name: sonarr
|
||||
image: lscr.io/linuxserver/sonarr:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
env:
|
||||
- name: PUID
|
||||
value: "33"
|
||||
- name: PGID
|
||||
value: "33"
|
||||
- name: TZ
|
||||
value: "Europe/Amsterdam"
|
||||
- name: UMASK
|
||||
value: "0002"
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: sonarr-secret
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8989
|
||||
hostPort: 8989
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 2000m
|
||||
memory: 2Gi
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /config
|
||||
- name: datadisk
|
||||
mountPath: /datadisk
|
||||
- name: mnt-mp3
|
||||
mountPath: /mnt/mp3
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /sonarr/ping
|
||||
port: 8989
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 20
|
||||
timeoutSeconds: 5
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /sonarr/ping
|
||||
port: 8989
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
volumes:
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: sonarr-config
|
||||
- name: datadisk
|
||||
hostPath:
|
||||
path: /datadisk
|
||||
type: Directory
|
||||
- name: mnt-mp3
|
||||
hostPath:
|
||||
path: /mnt/mp3
|
||||
type: Directory
|
||||
Reference in New Issue
Block a user