From 0a1ff45224fdaa22053ea873d8a452778cfcb6c1 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Tue, 14 Nov 2023 00:39:08 +0100 Subject: [PATCH] feat(nfs): Add NFS configurations for NAS --- nfs-provisioner/kustomization.yaml | 7 +++++++ nfs-provisioner/namespace.yaml | 4 ++++ nfs-provisioner/patch_nfs_details.yaml | 21 +++++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 nfs-provisioner/kustomization.yaml create mode 100644 nfs-provisioner/namespace.yaml create mode 100644 nfs-provisioner/patch_nfs_details.yaml diff --git a/nfs-provisioner/kustomization.yaml b/nfs-provisioner/kustomization.yaml new file mode 100644 index 0000000..1a44d15 --- /dev/null +++ b/nfs-provisioner/kustomization.yaml @@ -0,0 +1,7 @@ +namespace: nfs-provisioner +bases: + - github.com/kubernetes-sigs/nfs-subdir-external-provisioner/deploy +resources: + - namespace.yaml +patchesStrategicMerge: + - patch_nfs_details.yaml diff --git a/nfs-provisioner/namespace.yaml b/nfs-provisioner/namespace.yaml new file mode 100644 index 0000000..5c12b49 --- /dev/null +++ b/nfs-provisioner/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: nfs-provisioner diff --git a/nfs-provisioner/patch_nfs_details.yaml b/nfs-provisioner/patch_nfs_details.yaml new file mode 100644 index 0000000..6184368 --- /dev/null +++ b/nfs-provisioner/patch_nfs_details.yaml @@ -0,0 +1,21 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + app: nfs-client-provisioner + name: nfs-client-provisioner +spec: + template: + spec: + containers: + - name: nfs-client-provisioner + env: + - name: NFS_SERVER + value: 192.168.56.200 + - name: NFS_PATH + value: /export/Bulk + volumes: + - name: nfs-client-root + nfs: + server: 192.168.56.200 + path: /export/Bulk