「 K8S篇 」 九月 20, 2021
k8s 挂载外部 nfs 存储
文章字数 1.1k 阅读约需 1 mins.
暴露挂载点的机器:
yum -y install nfs-utils
mkdir -p /nfs/data/
chmod -R 777 /nfs/data
vim /etc/exports
写入以下内容:
/nfs/data *(rw,no_root_squash,sync)
生效配置并查看
exportfs -r
exportfs
启动服务:
systemctl restart rpcbind && systemctl enable rpcbind
systemctl restart...