Laboratory Machine Management

k8s nas disk mount

After the k8s machine restarts, use the df -h command to check whether there is a /data disk. If not, you need to mount it manually. The premise is to ensure that the machine can ping 169.252.198.3.

sudo mount -t nfs 169.252.198.3:/NAS_DATA/NAS_DATA /data

If you want to automatically mount on boot, you need to modify the file:

sudo vim /etc/fstab

Add on the last line

169.252.198.3:/NAS_DATA/NAS_DATA /data nfs

then execute

sudo mount -a

Guess you like

Origin blog.csdn.net/weixin_43742643/article/details/129478295