Skip to content

Setting up NFS

Anton Shcherbyna edited this page Feb 3, 2018 · 1 revision

Setting up NFS Server

Steps in this section should be performed on storage server.

  1. Install NFS utilities and create a shared path:
$ yum install nfs-utils
$ mkdir -p /shared/kubernetes/web
$ mkdir -p /shared/kubernetes/db
  1. Add following line into /etc/exports:
/shared 192.168.50.0/24(rw,sync,no_root_squash,no_all_squash)
  1. Restart NFS related services:
$ systemctl enable rpcbind
$ systemctl enable nfs-server
$ systemctl restart rpcbind
$ systemctl restart nfs-server

Setting up NFS Client

Steps in this section should be performed on all Kubernetes nodes (master and minions).

  1. install NFS client so Kubernetes can mount it for persistent disk:
$ yum install nfs-utils
  1. Ensure you can see the NFS share on the storage server:
$ showmount -e 192.168.50.135

Clone this wiki locally