Skip to content

Instalando NFS-Server

instale

apt install nfs-kernel-server

configure

crie o arquivo /etc/exports

/srv/nfs/cluster-rancher 192.168.111.0/22(rw,sync,no_subtree_check,no_root_squash)
/srv/nfs/cluster-k8s-dev 192.168.111.0/22(rw,sync,no_subtree_check,no_root_squash)
/srv/nfs/cluster-k8s-tst 192.168.111.0/22(rw,sync,no_subtree_check,no_root_squash)
/srv/nfs/cluster-k8s-hmg 192.168.111.0/22(rw,sync,no_subtree_check,no_root_squash)
/srv/nfs/cluster-k8s-prd 192.168.111.0/22(rw,sync,no_subtree_check,no_root_squash)

recarregue

exportfs -a

verifique

exportfs

saída exemplo

/srv/nfs/cluster-k8s-dev
        192.168.111.0/22
/srv/nfs/cluster-k8s-hmg
        192.168.111.0/22
/srv/nfs/cluster-k8s-prd
        192.168.111.0/22
/srv/nfs/cluster-k8s-tst
        192.168.111.0/22
/srv/nfs/cluster-rancher
        192.168.111.0/22