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:
  1. On the administrative host, run the following command to create an oud_user_projects directory:
    cd <persistent_volume>
    mkdir oud_user_projects
    sudo chown -R 1000:0 oud_user_projects
    For example:
    cd /nfs_volumes/oudpv
    mkdir oud_user_projects   
    sudo chown -R 1000:0 oud_user_projects
  2. 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 userid 1000 or is part of group 0.
    cd <persistent_volume>/oud_user_projects
    touch fileadmin.txt
    ls fileadmin.txt
    For example:
    cd /nfs_volumes/oudpv/oud_user_projects
    touch fileadmin.txt
    ls fileadmin.txt