add nfs-subdir-external-provisioner

This commit is contained in:
Mans Ziesel 2024-10-25 19:11:57 +02:00
parent c71cee7bdd
commit a58dbed9b9
4 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: argo-app-nfs-subdir-external-provisioner
namespace: argocd
spec:
destination:
name: ''
namespace: default
server: https://kubernetes.default.svc
source:
path: nfs-subdir-external-provisioner
repoURL: https://git.mziesel.nl/mans/argocd-test
targetRevision: HEAD
sources: []
project: default
syncPolicy:
automated:
prune: true
selfHeal: true

View File

@ -0,0 +1,16 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./namespace.yaml
namespace: nfs-subdir-external-provisioner
helmCharts:
- name: nfs-subdir-external-provisioner
repo: https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/
releaseName: nfs-subdir-external-provisioner
version: 4.0.18
valuesFile: values.yaml
includeCRDs: true
namespace: nfs-subdir-external-provisioner

View File

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: nfs-subdir-external-provisioner
labels:
pod-security.kubernetes.io/enforce: privileged

View File

@ -0,0 +1,9 @@
nfs:
server: 192.168.10.30
path: /srv/nfs4
mountOptions:
- noatime
- nfsvers=4.2 # https://cloud.google.com/knowledge/kb/nfs-volume-timeouts-on-google-kubernetes-engine-000004912
- nolock # talos lacks a running statd daemon, required for network locks
volumeName: nfs-subdir-external-provisioner-root
reclaimPolicy: Retain