Skip to content

Commit

Permalink
chore: add cache volume for sonarr/radarr
Browse files Browse the repository at this point in the history
  • Loading branch information
zebernst committed Nov 2, 2024
1 parent ca1e9bb commit b7241b2
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kubernetes/apps/default/radarr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ spec:
persistence:
config:
type: emptyDir
cache:
existingClaim: radarr-cache
globalMounts:
- path: /config/MediaCover
subPath: MediaCover
scripts:
type: configMap
name: radarr-configmap
Expand Down
1 change: 1 addition & 0 deletions kubernetes/apps/default/radarr/app/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ resources:
- ./externalsecret.yaml
- ./helmrelease.yaml
- ../../../../templates/gatus/guarded
- ./pvc.yaml
configMapGenerator:
- name: radarr-configmap
files:
Expand Down
11 changes: 11 additions & 0 deletions kubernetes/apps/default/radarr/app/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: radarr-cache
spec:
accessModes: ["ReadWriteMany"]
resources:
requests:
storage: 30Gi
storageClassName: iscsi
5 changes: 5 additions & 0 deletions kubernetes/apps/default/sonarr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ spec:
persistence:
config:
type: emptyDir
cache:
existingClaim: sonarr-cache
globalMounts:
- path: /config/MediaCover
subPath: MediaCover
scripts:
type: configMap
name: sonarr-configmap
Expand Down
1 change: 1 addition & 0 deletions kubernetes/apps/default/sonarr/app/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ resources:
- ./externalsecret.yaml
- ./helmrelease.yaml
- ../../../../templates/gatus/guarded
- ./pvc.yaml
configMapGenerator:
- name: sonarr-configmap
files:
Expand Down
11 changes: 11 additions & 0 deletions kubernetes/apps/default/sonarr/app/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: sonarr-cache
spec:
accessModes: ["ReadWriteMany"]
resources:
requests:
storage: 30Gi
storageClassName: iscsi

0 comments on commit b7241b2

Please sign in to comment.