6.3 Creating a Persistent Volume Directory
As referenced in System Requirements for OIG 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/oig/governancedomainpv
.
Perform the following steps:
- On the administrative host, run the following command to create an
governancedomainpv
directory:Note:
The following assumes the user creating the file has userid1000
or is part of group0
.
For example:cd <persistent_volume> mkdir governancedomainpv sudo chown -R 1000:0 governancedomainpv
cd /nfs_volumes/oig mkdir governancedomainpv sudo chown -R 1000:0 governancedomainpv
- On the administrative host run the following to ensure it is possible to read and
write to the persistent
volume:
For example:cd <persistent_volume>/governancedomainpv touch fileadmin.txt ls fileadmin.txt
cd /nfs_volumes/oig/governancedomainpv touch fileadmin.txt ls fileadmin.txt