adding nfs-pod
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -2,7 +2,8 @@ media/
|
||||
default/*tt*
|
||||
certs/ca*
|
||||
|
||||
lab
|
||||
lab/*
|
||||
!lab/nfs-pod.yaml
|
||||
|
||||
rbac
|
||||
cronjobs
|
@@ -1,4 +1,4 @@
|
||||
# Haven
|
||||
<h1 align="center">Haven</h1>
|
||||
**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
|
||||
|
37
lab/nfs-pod.yaml
Normal file
37
lab/nfs-pod.yaml
Normal 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
|
Reference in New Issue
Block a user