Add nfs-server

guppy 2023-05-23 21:38:14 +02:00
parent 829cc1777e
commit c848a13846
1 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,36 @@
kind: Service
apiVersion: v1
metadata:
name: nfs-service
spec:
clusterIP: 10.100.10.10
selector:
role: nfs
ports:
# Open the ports required by the NFS server
# Port 2049 for TCP
- name: tcp-2049
port: 2049
protocol: TCP
# Port 111 for UDP
- name: udp-111
port: 111
type: ClusterIP
---
kind: Pod
apiVersion: v1
metadata:
name: nfs-server
labels:
role: nfs
spec:
containers:
- name: nfs-server
image: cpuguy83/nfs-server
securityContext:
privileged: true
args:
# Pass the paths to share to the Docker image
- /exports