Skip to content

Commit

Permalink
chore: move NAS pvcs to ks
Browse files Browse the repository at this point in the history
  • Loading branch information
ishioni committed Feb 3, 2025
1 parent a8b70f5 commit adfe4a2
Show file tree
Hide file tree
Showing 15 changed files with 56 additions and 18 deletions.
2 changes: 1 addition & 1 deletion kubernetes/apps/downloads/bazarr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,6 @@ spec:
existingClaim: ${VOLSYNC_CLAIM}
media:
enabled: true
existingClaim: downloads-datastore
existingClaim: downloads-pvc
globalMounts:
- path: /media
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: downloads-datastore
name: downloads-pvc
spec:
capacity:
storage: 4000Gi
Expand All @@ -18,13 +18,12 @@ spec:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: downloads-datastore
namespace: downloads
name: downloads-pvc
spec:
accessModes: ["ReadWriteMany"]
resources:
requests:
storage: 4000Gi
storageClassName: nfs
volumeMode: Filesystem
volumeName: downloads-datastore
volumeName: downloads-pvc
20 changes: 20 additions & 0 deletions kubernetes/apps/downloads/downloads-pvc/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
# yaml-language-server: $schema=https://crd.movishell.pl/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app downloads-pvc
namespace: &namespace downloads
spec:
commonMetadata:
labels:
app.kubernetes.io/name: *app
interval: 30m
path: ./kubernetes/apps/downloads/downloads-pvc/app
prune: true
sourceRef:
kind: GitRepository
name: homelab-ops
namespace: flux-system
targetNamespace: *namespace
wait: true
2 changes: 1 addition & 1 deletion kubernetes/apps/downloads/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ components:
- ../../components/sops
resources:
- ./bazarr/ks.yaml
- ./downloads-pvc/ks.yaml
- ./lidarr/ks.yaml
- ./prowlarr/ks.yaml
- ./pvc
- ./qbittorrent/ks.yaml
- ./radarr/ks.yaml
- ./recyclarr/ks.yaml
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/downloads/lidarr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,6 @@ spec:
globalMounts:
- path: /config/logs
media:
existingClaim: downloads-datastore
existingClaim: downloads-pvc
globalMounts:
- path: /media
2 changes: 1 addition & 1 deletion kubernetes/apps/downloads/qbittorrent/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ spec:
config:
existingClaim: ${VOLSYNC_CLAIM}
downloads:
existingClaim: downloads-datastore
existingClaim: downloads-pvc
globalMounts:
- path: /downloads
subPath: Downloads
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/downloads/radarr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ spec:
globalMounts:
- path: /config/logs
media:
existingClaim: downloads-datastore
existingClaim: downloads-pvc
globalMounts:
- path: /media
tmp:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/downloads/sonarr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ spec:
globalMounts:
- path: /config/logs
media:
existingClaim: downloads-datastore
existingClaim: downloads-pvc
globalMounts:
- path: /media
tmp:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ spec:
config:
existingClaim: ${VOLSYNC_CLAIM}
media:
existingClaim: media-datastore
existingClaim: selfhosted-pvc
globalMounts:
- path: /audiobooks
subPath: Audiobooks
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/selfhosted/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ resources:
- ./nextcloud/ks.yaml
- ./paperless/ks.yaml
- ./partdb/ks.yaml
- ./pvc
- ./selfhosted-pvc
2 changes: 1 addition & 1 deletion kubernetes/apps/selfhosted/navidrome/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ spec:
config:
existingClaim: ${VOLSYNC_CLAIM}
music:
existingClaim: media-datastore
existingClaim: selfhosted-pvc
globalMounts:
- path: /music
subPath: Music
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./downloads-pvc.yaml
- ./media-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: media-datastore
name: selfhosted-pvc
spec:
capacity:
storage: 4000Gi
Expand All @@ -18,13 +18,12 @@ spec:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: media-datastore
namespace: selfhosted
name: selfhosted-pvc
spec:
accessModes: [ReadWriteMany]
resources:
requests:
storage: 4000Gi
storageClassName: nfs
volumeMode: Filesystem
volumeName: media-datastore
volumeName: selfhosted-pvc
20 changes: 20 additions & 0 deletions kubernetes/apps/selfhosted/selfhosted-pvc/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
# yaml-language-server: $schema=https://crd.movishell.pl/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app selfhosted-pvc
namespace: &namespace selfhosted
spec:
commonMetadata:
labels:
app.kubernetes.io/name: *app
interval: 30m
path: ./kubernetes/apps/selfhosted/selfhosted-pvc/app
prune: true
sourceRef:
kind: GitRepository
name: homelab-ops
namespace: flux-system
targetNamespace: *namespace
wait: true

0 comments on commit adfe4a2

Please sign in to comment.