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 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:
# (verified on Ubuntu 16.04 AWS EC2 EBS volume)
sudo vi /etc/fstab
# append the following
cdrancher.onap.info:/dockerdata-nfs /dockerdata-nfs nfs auto 0 0
sudo mount -a |
...