NFS
Network File System
NFS or Network File System is a distributed file system protocol that allows you to share directories over a network. With NFS, you can mount remote directories on your system and work with the files on the remote machine as if they were local files.
NFS Server
Install
# install server
apt install nfs-kernel-server
# sharde directory
mkdir /nfs
# config
cat > /etc/exports << "EOF"
/nfs *(rw,sync,no_subtree_check)
EOF
# apply and reload
exportfs -a
exportfs –r
# mount verbose
exportfs -v
/nfs <world>(rw,wdelay,root_squash,no_subtree_check,sec=sys,rw,secure,root_squash,no_all_squash)
# systemd manage
systemctl start rpcbind
systemctl enable rpcbind
systemctl start nfs-kernel-server
systemctl enable nfs-kernel-serverclient mount
Kubernetes CSI Driver
csi-driver-nfs
example
Reference:
Last updated