Appendix B. Setting up a persistent storage source
The purpose of this appendix is to configure NFS and export a volume to use as the backend for persistent volumes in your OpenShift cluster. In the examples, you’ll set up the OpenShift master as the NFS server. If you want to use a different server, the setup is similar. The main thing you need to be sure of is that your NFS server has connectivity to your OpenShift cluster. In the following sections, you’ll install and configure your OpenShift master as an NFS server.
The NFS server software is provided by the nfs-utils package. The first step is to confirm whether this package is installed on the master. The command to do that uses the yum package manager. The output indicates whether nfs-utils is installed. If the package isn’t installed, there’s no output. In a terminal window, run the following command at the prompt to see if the nfs-utils package is installed on your master server:
If you need to install nfs-utils, running the following yum command in the same terminal will install all the services required to act as an NFS server:
When you have nfs-utils installed on your master server, you need to configure the filesystem that NFS will use for storage. This is detailed in the next section.