chore: Refactor nfs PVC resource
This commit is contained in:
parent
bd7d2794d4
commit
5c1a74db0e
10 changed files with 123 additions and 132 deletions
|
|
@ -4,6 +4,7 @@ kind: Kustomization
|
|||
namespace: qbittorrent
|
||||
|
||||
resources:
|
||||
- ../../kustomize-bases/nfs-media
|
||||
- configmap.yaml
|
||||
- deployments.yaml
|
||||
- ingress.yaml
|
||||
|
|
@ -12,6 +13,25 @@ resources:
|
|||
- services.yaml
|
||||
- namespace.yaml
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: PersistentVolume
|
||||
name: nfs-media
|
||||
patch: |
|
||||
- op: replace
|
||||
path: /metadata/name
|
||||
value: nfs-media-qbittorrent
|
||||
- op: replace
|
||||
path: /spec/nfs/path
|
||||
value: /tank/media/downloads
|
||||
- target:
|
||||
kind: PersistentVolumeClaim
|
||||
name: nfs-media
|
||||
patch: |
|
||||
- op: replace
|
||||
path: /spec/volumeName
|
||||
value: nfs-media-qbittorrent
|
||||
|
||||
images:
|
||||
- name: ghcr.io/qdm12/gluetun
|
||||
newTag: v3.41.1@sha256:1a5bf4b4820a879cdf8d93d7ef0d2d963af56670c9ebff8981860b6804ebc8ab
|
||||
|
|
|
|||
|
|
@ -10,36 +10,3 @@ spec:
|
|||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: nfs-media
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 40Ti
|
||||
volumeName: nfs-media-qbittorrent
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: nfs-media-qbittorrent
|
||||
spec:
|
||||
capacity:
|
||||
storage: 40Ti
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
nfs:
|
||||
server: 10.0.69.10
|
||||
path: /tank/media/downloads
|
||||
mountOptions:
|
||||
- vers=4.1
|
||||
- rsize=1048576
|
||||
- wsize=1048576
|
||||
- hard
|
||||
- timeo=600
|
||||
- noatime
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue