6.3 Creating a Persistent Volume Directory
As referenced in System Requirements for OAM 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/oam/accessdomainpv
.
Perform the following steps:
- On the administrative host, run the following command to create an
accessdomainpv
directory:
For example:cd <persistent_volume> mkdir accessdomainpv sudo chown -R 1000:0 accessdomainpv
cd /nfs_volumes/oam mkdir accessdomainpv sudo chown -R 1000:0 accessdomainpv
- 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>/accessdomainpv touch fileadmin.txt ls fileadmin.txt
cd /nfs_volumes/oam/accessdomainpv touch fileadmin.txt ls fileadmin.txt