Preparing the operator and log file storage
All instances of an operator need a place to store its log files. If you plan to run the scripts to generate a custom resource (CR), the cluster setup script creates a persistent volume claim (PVC) for you by default.
About this task
You can customize the storage of the operator before you create an instance of the operator. The cluster setup script creates the operator instance, if you plan to use the Operator Hub then you must create the necessary storage for the operator.
The cluster setup script identifies the available storage classes on your cluster, but you can create a new PV for the operator. The name of the PV must be set in the PVC, so make sure that the storageClassName has the correct value.
If you use static storage, make sure that you grant group write permission to the nfs.path on the host or your shared volume on your NFS server.
If you plan to run the installation scripts and want to use the default storage, decide whether to create a new namespace before you run the scripts. You can create a namespace beforehand or when you run the cluster setup script. If you do not want to use the IBM Entitled Registry to pull the container images, then you need a namespace to load the images to a target registry.
Procedure
What to do next
Confirm that the STATUS
of the PVCs (cp4a-shared-log-pvc
and
operator-shared-pvc
) are bound correctly before you move to the next step by
running the following command in the <project_name>
.
oc get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
cp4a-shared-log-pvc Bound pvc-db2068e1-83d1-45e4-a4db-a33b93387561 100Gi RWX managed-nfs-storage 102m
operator-shared-pvc Bound pvc-74f0a26c-3632-4c93-a78c-6502cee5ab48 1Gi RWX managed-nfs-storage 102m
You can now check that you have access to the container images. For more information, see Getting access to images from the public IBM Entitled Registry.