Create an AWS cache bucket.
Before you begin
-
A running Fusion Data Foundation Platform.
- Download the MCG command-line interface for easier
management.
subscription-manager repos --enable=rh-odf-4-for-rhel-8-x86_64-rpms
yum install mcg
Note: Specify
the appropriate architecture for enabling the repositories using the subscription manager. In case
of IBM Z infrastructure, use the following
command:
subscription-manager repos --enable=rh-odf-4-for-rhel-8-s390x-rpms
-
Alternatively, you can install the MCG package from the RPMs found at Download Red Hat OpenShift Data Foundation page.
Note: Choose the correct Product Variant according to your architecture.
About this task
This procedure describes creating a NamespaceStore. A NamespaceStore represents an
underlying storage to be used as a read or write target for the data in the MCG namespace
buckets.
Procedure
- Create NamespaceStore in one of the following ways:
- Run the following command to create a bucket class:
noobaa bucketclass create namespace-bucketclass cache <my-cache-bucket-class> --backingstores <backing-store> --hub-resource <namespacestore>
- my-cache-bucket-class
- A unique bucket class name.
- backing-store
- Name of the relevant backing store. You can also list more than one backing stores separated by
commas.
- namespacestore
- Name of the NamespaceStore created in the previous step.
- Run the following command to create a bucket using an Object Bucket Claim (OBC) resource
that uses the bucket class defined in the previous step.
noobaa obc create <my-bucket-claim> my-app --bucketclass <custom-bucket-class>
- my-bucket-claim
- A unique object bucket claim name.
- custom-bucket-class
- Name of the bucket class created in the previous step.