mirror of
https://github.com/gwg313/homelab-gitops.git
synced 2026-06-06 00:21:00 +00:00
nfs-subdir
Signed-off-by: gwg313 <gwg313@pm.me>
This commit is contained in:
parent
bf61a80fee
commit
d7281ecee8
5 changed files with 88 additions and 0 deletions
26
platform/nfs-subdir/templates/extra-storage-classes.yaml
Normal file
26
platform/nfs-subdir/templates/extra-storage-classes.yaml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: nfs-ephemeral
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "1"
|
||||
provisioner: cluster.local/nfs-subdir-external-provisioner
|
||||
parameters:
|
||||
archiveOnDelete: "false"
|
||||
pathPattern: "ephemeral/${.PVC.namespace}/${.PVC.name}"
|
||||
reclaimPolicy: Delete
|
||||
volumeBindingMode: Immediate
|
||||
---
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: nfs-retain
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "1"
|
||||
provisioner: cluster.local/nfs-subdir-external-provisioner
|
||||
parameters:
|
||||
archiveOnDelete: "false"
|
||||
pathPattern: "retained/${.PVC.namespace}/${.PVC.name}"
|
||||
reclaimPolicy: Retain
|
||||
volumeBindingMode: Immediate
|
||||
Loading…
Add table
Add a link
Reference in a new issue