adding nfs-pod

This commit is contained in:
2025-09-17 18:01:02 -03:00
parent a05bad8e0e
commit 52ec503dc4
3 changed files with 45 additions and 4 deletions

3
.gitignore vendored
View File

@@ -2,7 +2,8 @@ media/
default/*tt* default/*tt*
certs/ca* certs/ca*
lab lab/*
!lab/nfs-pod.yaml
rbac rbac
cronjobs cronjobs

View File

@@ -1,4 +1,4 @@
# Haven <h1 align="center">Haven</h1>
**A *forever-work-in-progress* self-hosted server setup** **A *forever-work-in-progress* self-hosted server setup**
Based on a multi-node k3s cluster running on VMs and bare metal hardware. 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 - dev
- Gitea Runner (x64) - Gitea Runner (x64)
- Gitea Runner (arm64) - 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-system
- MetalLB components - MetalLB components
- cert-manager - cert-manager

37
lab/nfs-pod.yaml Normal file
View File

@@ -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