6.3 Creating a Persistent Volume Directory
Note:
This section should not be followed if using block storage.As referenced in System Requirements for Oracle Unified Directory 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/oudpv
.
Perform the following steps:
- On the administrative host, run the following command to create an
oud_user_projects
directory:
For example:cd <persistent_volume> mkdir oud_user_projects sudo chown -R 1000:0 oud_user_projects
cd /nfs_volumes/oudpv mkdir oud_user_projects sudo chown -R 1000:0 oud_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>/oud_user_projects touch fileadmin.txt ls fileadmin.txt
cd /nfs_volumes/oudpv/oud_user_projects touch fileadmin.txt ls fileadmin.txt