From a58dbed9b9d0327d653c8d41cb6bf9883082a11c Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Fri, 25 Oct 2024 19:11:57 +0200 Subject: [PATCH] add nfs-subdir-external-provisioner --- ...bdir-external-provisioner-application.yaml | 20 +++++++++++++++++++ .../kustomization.yaml | 16 +++++++++++++++ .../namespace.yaml | 6 ++++++ nfs-subdir-external-provisioner/values.yaml | 9 +++++++++ 4 files changed, 51 insertions(+) create mode 100644 argocd-applications/base/nfs-subdir-external-provisioner-application.yaml create mode 100644 nfs-subdir-external-provisioner/kustomization.yaml create mode 100644 nfs-subdir-external-provisioner/namespace.yaml create mode 100644 nfs-subdir-external-provisioner/values.yaml diff --git a/argocd-applications/base/nfs-subdir-external-provisioner-application.yaml b/argocd-applications/base/nfs-subdir-external-provisioner-application.yaml new file mode 100644 index 0000000..a0b2ac4 --- /dev/null +++ b/argocd-applications/base/nfs-subdir-external-provisioner-application.yaml @@ -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 diff --git a/nfs-subdir-external-provisioner/kustomization.yaml b/nfs-subdir-external-provisioner/kustomization.yaml new file mode 100644 index 0000000..de3d65d --- /dev/null +++ b/nfs-subdir-external-provisioner/kustomization.yaml @@ -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 diff --git a/nfs-subdir-external-provisioner/namespace.yaml b/nfs-subdir-external-provisioner/namespace.yaml new file mode 100644 index 0000000..01469f9 --- /dev/null +++ b/nfs-subdir-external-provisioner/namespace.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: nfs-subdir-external-provisioner + labels: + pod-security.kubernetes.io/enforce: privileged diff --git a/nfs-subdir-external-provisioner/values.yaml b/nfs-subdir-external-provisioner/values.yaml new file mode 100644 index 0000000..73a576e --- /dev/null +++ b/nfs-subdir-external-provisioner/values.yaml @@ -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