-
Notifications
You must be signed in to change notification settings - Fork 0
Setting up NFS
Anton Shcherbyna edited this page Feb 3, 2018
·
1 revision
Steps in this section should be performed on storage server.
- Install NFS utilities and create a shared path:
$ yum install nfs-utils
$ mkdir -p /shared/kubernetes/web
$ mkdir -p /shared/kubernetes/db- Add following line into /etc/exports:
/shared 192.168.50.0/24(rw,sync,no_root_squash,no_all_squash)- Restart NFS related services:
$ systemctl enable rpcbind
$ systemctl enable nfs-server
$ systemctl restart rpcbind
$ systemctl restart nfs-serverSteps in this section should be performed on all Kubernetes nodes (master and minions).
- install NFS client so Kubernetes can mount it for persistent disk:
$ yum install nfs-utils- Ensure you can see the NFS share on the storage server:
$ showmount -e 192.168.50.135