Tip |
---|
You can skip this step if your Kubernetes cluster deployment is on a single VM. |
...
Expand | ||
---|---|---|
| ||
$ ps -ef|grep nfs |
On the other VMs (Kubernetes Worker Nodes)
...
Code Block | ||||
---|---|---|---|---|
| ||||
sudo apt update sudo apt install nfs-common -y sudo mkdir /dockerdata-nfs sudo chmod 777 /dockerdata-nfs # Option 1: sudo mount -t nfs -o proto=tcp,port=2049 <hostname or IP address of NFS server>:/dockerdata-nfs /dockerdata-nfs sudo vi /etc/fstab # append the following <hostname of IP address of NFS server>:/dockerdata-nfs /dockerdata-nfs nfs auto 0 0 # Option 2: sudo vi /etc/fstab # append the following line. <hostname of IP address of NFS server>:/dockerdata-nfs /dockerdata-nfs nfs auto 0 0 # run the following line sudo mount -a |
Verify it :
Tocuh a file inside /dockerdata-nfs directory onĀ the Kubernetes Master and check to see if the same file is found underĀ /dockerdata-nfs on all Kubernetes worker nodes.
...