6.3 Creating a Persistent Volume Directory
As referenced in System Requirements for OUDSM on Kubernetes the nodes in the Kubernetes cluster must have access to a persistent volume such as a Network File System (NFS) mount or a shared file system.
In the examples below an NFS volume is mounted on all nodes in the Kubernetes cluster, and
is accessible via the directory /nfs_volumes/oudsmpv
.
Perform the following steps:
- On the administrative host, run the following command to create an
oudsm_user_projects
directory:
For example:cd <persistent_volume> mkdir oudsm_user_projects sudo chown -R 1000:0 oudsm_user_projects
cd /nfs_volumes/oudsmpv mkdir oudsm_user_projects sudo chown -R 1000:0 oudsm_user_projects
- On the administrative host run the following to ensure it is possible to read and
write to the persistent volume:
Note:
The following assumes the user creating the file has userid1000
or is part of group0
.
For example:cd <persistent_volume>/oudsm_user_projects touch fileadmin.txt ls fileadmin.txt
cd /nfs_volumes/oudsmpv/oudsm_user_projects touch fileadmin.txt ls fileadmin.txt