From bb1bef6d49f6261040c34a92db57869be3a8e123 Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Fri, 25 Oct 2024 20:15:30 +0200 Subject: [PATCH] configure nfs-provisioner --- .../kustomization.yaml | 3 +++ .../patch_nfs_details.yaml | 21 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 nfs-subdir-external-provisioner/patch_nfs_details.yaml diff --git a/nfs-subdir-external-provisioner/kustomization.yaml b/nfs-subdir-external-provisioner/kustomization.yaml index 59c9dce..f1b05d9 100644 --- a/nfs-subdir-external-provisioner/kustomization.yaml +++ b/nfs-subdir-external-provisioner/kustomization.yaml @@ -6,3 +6,6 @@ namespace: nfs-provisioner resources: - ./base/nfs-provisioner-namespace.yaml - github.com/kubernetes-sigs/nfs-subdir-external-provisioner//deploy?ref=nfs-subdir-external-provisioner-4.0.17 + +patchesStrategicMerge: + - patch_nfs_details.yaml diff --git a/nfs-subdir-external-provisioner/patch_nfs_details.yaml b/nfs-subdir-external-provisioner/patch_nfs_details.yaml new file mode 100644 index 0000000..7747128 --- /dev/null +++ b/nfs-subdir-external-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.10.30 + - name: NFS_PATH + value: /srv/nfs4 + volumes: + - name: nfs-client-root + nfs: + server: 192.168.10.30 + path: /srv/nfs4