chore: Refactor nfs PVC resource
This commit is contained in:
parent
bd7d2794d4
commit
5c1a74db0e
10 changed files with 123 additions and 132 deletions
6
kustomize-bases/nfs-media/kustomization.yaml
Normal file
6
kustomize-bases/nfs-media/kustomization.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- pvc.yaml
|
||||
40
kustomize-bases/nfs-media/pvc.yaml
Normal file
40
kustomize-bases/nfs-media/pvc.yaml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
# Shared NFS media storage template — used by plex, sonarr, radarr, and qbittorrent.
|
||||
# All apps on k8s-wheatley mount the same NFS server: 10.0.69.10
|
||||
#
|
||||
# Each app overlays this base with JSON patches in its kustomization.yaml:
|
||||
# - Always: rename PV (metadata.name) and update PVC volumeName to match
|
||||
# - plex only: patch accessModes to ReadOnlyMany on both PV and PVC
|
||||
# - qbittorrent only: patch nfs.path to /tank/media/downloads
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: nfs-media # renamed per-app via JSON patch
|
||||
spec:
|
||||
capacity:
|
||||
storage: 40Ti
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
nfs:
|
||||
server: 10.0.69.10
|
||||
path: /tank/media
|
||||
mountOptions:
|
||||
- vers=4.1
|
||||
- rsize=1048576
|
||||
- wsize=1048576
|
||||
- hard
|
||||
- timeo=600
|
||||
- noatime
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: nfs-media
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 40Ti
|
||||
volumeName: nfs-media # patched per-app to match PV name
|
||||
Loading…
Add table
Add a link
Reference in a new issue