switched to deployments for easier restarts also moved pvc's after

accidntally deleting them :(
This commit is contained in:
2024-11-13 07:20:17 +01:00
parent 6c64c14934
commit 5b2b526113
24 changed files with 375 additions and 257 deletions

View File

@@ -0,0 +1,44 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: sonarr
labels:
app.kubernetes.io/name: sonarr
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: sonarr
template:
metadata:
labels:
app.kubernetes.io/name: sonarr
spec:
volumes:
- name: nfs-vol
nfs:
server: 192.168.0.114
path: /mnt/test1/media/
- name: config
persistentVolumeClaim:
claimName: config-sonarr
containers:
- name: sonarr
image: ghcr.io/hotio/sonarr:latest
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: UMASK
value: "002"
- name: TZ
value: "Etc/UTC"
ports:
- containerPort: 8989
volumeMounts:
- name: config
mountPath: /config
- name: nfs-vol
mountPath: /media

View File

@@ -1,35 +0,0 @@
apiVersion: v1
kind: Pod
metadata:
name: sonarr
labels:
app.kubernetes.io/name: sonarr
spec:
volumes:
- name: nfs-vol
nfs:
server: 192.168.0.114
path: /mnt/test1/media/
- name: config
persistentVolumeClaim:
claimName: config-sonarr
containers:
- name: sonarr
image: ghcr.io/hotio/sonarr:latest
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: UMASK
value: "002"
- name: TZ
value: "Etc/UTC"
ports:
- containerPort: 8989
volumeMounts:
- name: config
mountPath: /config
- name: nfs-vol
mountPath: /media

View File

@@ -1,9 +0,0 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: config-sonarr
spec:
accessModes: [ReadWriteOnce]
resources: { requests: { storage: 1Gi } }