IBM Operator for Sonatype Nexus Repository
The default configuration uses an emptyDir volume for storing Nexus Repository logs. However, we strongly recommend that you configure dynamic provisioning of persistent storage based on your deployment environment as explained below.
- Ensure the appropriate Container Storage Interface (CSI) driver(s) are installed for your chosen OpenShift cloud deployment. Please refer to OpenShift documentation for details on configuring CSI drivers.
Note: if you're using Red Hat OpenShift on AWS (ROSA), CSI drivers for dynamically provisioning EBS volumes are installed by default; you should see associated storage classes for them in your cluster web console similar to what's shown below:
- Attach separate disks (i.e. separate from the root disk) to your worker nodes.
- Install the Local Storage Operator. Please refer to Open Shift persistent storage documentation and the Local Storage Operator documentation
- Use the Local Storage Operator to automatically create persistent volumes for your chosen storage class name as documented here
- Set the
nexusData.storageClass.name
parameter to a storage class name. This could be one of the default storage classes automatically created in your OpenShift cluster (e.g., if you're using ROSA) or one that you would like the operator to create.- If you would like to create a dedicated storage class (i.e., you don't want to use the default), then in addition to specifying a value for
nexusData.storageClass.name
, you must also setnexusData.storageClass.enabled
parameter totrue
. - Set the
nexusData.volumeClaimTemplate.enabled
parameter to true.
- If you would like to create a dedicated storage class (i.e., you don't want to use the default), then in addition to specifying a value for