From 52ec503dc42c642829471253caa36762ffa44b93 Mon Sep 17 00:00:00 2001 From: Jose Henrique Date: Wed, 17 Sep 2025 18:01:02 -0300 Subject: [PATCH] adding nfs-pod --- .gitignore | 3 ++- README.md | 9 ++++++--- lab/nfs-pod.yaml | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 4 deletions(-) create mode 100644 lab/nfs-pod.yaml diff --git a/.gitignore b/.gitignore index 7c325e1..795230b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,8 @@ media/ default/*tt* certs/ca* -lab +lab/* +!lab/nfs-pod.yaml rbac cronjobs \ No newline at end of file diff --git a/README.md b/README.md index 3e06905..cd763ed 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Haven +

Haven

**A *forever-work-in-progress* self-hosted server setup** Based on a multi-node k3s cluster running on VMs and bare metal hardware. @@ -34,8 +34,11 @@ Also, the repository name is a reference to my local TLD which is `.haven` :) - dev - Gitea Runner (x64) - Gitea Runner (arm64) -- lab - - Nothing yet, just a playground/sandbox namespace + +#### Miscellaneous namespaces + +- lab (A playground/sandbox namespace) + - nfs-pod (for testing and accessing NFS mounts through NFS) - metallb-system - MetalLB components - cert-manager diff --git a/lab/nfs-pod.yaml b/lab/nfs-pod.yaml new file mode 100644 index 0000000..59ee0ce --- /dev/null +++ b/lab/nfs-pod.yaml @@ -0,0 +1,37 @@ +apiVersion: v1 +kind: Pod +metadata: + name: nfs-pod +spec: + containers: + - name: nfs-container + image: alpine:latest + env: + - name: PUID + value: "1000" + - name: PGID + value: "1000" + volumeMounts: + - name: nfs-backup + mountPath: /mnt/Backup + - name: nfs-storage + mountPath: /mnt/Storage + command: ["/bin/sh", "-c", "sleep infinity"] + resources: + requests: + cpu: 100m + memory: 128Mi + limits: + cpu: 800m + memory: 256Mi + securityContext: + privileged: true + volumes: + - name: nfs-backup + nfs: + server: 192.168.15.99 + path: /export/Backup + - name: nfs-storage + nfs: + server: 192.168.15.99 + path: /export/Storage \ No newline at end of file