mirror of
https://github.com/gwg313/homelab-gitops.git
synced 2026-06-05 22:21:01 +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
11
platform/nfs-subdir/Chart.yaml
Normal file
11
platform/nfs-subdir/Chart.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
apiVersion: v2
|
||||
name: nfs-subdir
|
||||
description: NFS Subdir External Provisioner
|
||||
type: application
|
||||
version: 1.0.0
|
||||
appVersion: 1.0.0
|
||||
|
||||
dependencies:
|
||||
- name: nfs-subdir-external-provisioner
|
||||
version: 4.0.18
|
||||
repository: https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/
|
||||
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
|
||||
27
platform/nfs-subdir/values.yaml
Normal file
27
platform/nfs-subdir/values.yaml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
nfs-subdir-external-provisioner:
|
||||
nfs:
|
||||
server: truenas.local.gwg313.xyz
|
||||
path: /mnt/tank/k8s/nfs-subdir
|
||||
mountOptions:
|
||||
- hard
|
||||
- noatime
|
||||
|
||||
storageClass:
|
||||
create: true
|
||||
name: nfs-client
|
||||
defaultClass: true
|
||||
accessModes: ReadWriteMany
|
||||
reclaimPolicy: Delete
|
||||
archiveOnDelete: "true"
|
||||
pathPattern: "${.PVC.namespace}/${.PVC.name}"
|
||||
|
||||
podSecurityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 65534
|
||||
fsGroup: 65534
|
||||
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
Loading…
Add table
Add a link
Reference in a new issue