Provisioning a Product Master instance by using the command line

Before you can use Product Master, you must provision an instance.

  1. Log in to your Red Hat® OpenShift® cluster as a project administrator:
    oc login OpenShift_URL:port
  2. Change to the project (namespace) where Cloud Pak for Data is installed by using the following command.
    oc project <cpd-instance>
  3. Provision the Product Master instance by using the following command.

    The command that you run depends on the storage on your cluster:


    Red Hat OpenShift Data Foundation storage

    Run the following command to provision the Product Master instance.

    cpd-cli manage apply-cr \
    --components=productmaster_instance \
    --release=${VERSION} \
    --cpd_instance_ns=${PROJECT_CPD_INSTANCE} \
    --block_storage_class=${STG_CLASS_BLOCK} \
    --file_storage_class=${STG_CLASS_FILE} \
    --extra-vars=productmaster_instance_scale_config=<TSHIRT_SIZE> \
    --license_acceptance=true

    IBM Storage Fusion storage

    Run the following command to provision the Product Master instance.

    Remember: When you use IBM Storage Fusion storage, both ${STG_CLASS_BLOCK} and ${STG_CLASS_FILE} point to the same storage class, typically ibm-spectrum-scale-sc.
    cpd-cli manage apply-cr \
    --components=productmaster_instance \
    --release=${VERSION} \
    --cpd_instance_ns=${PROJECT_CPD_INSTANCE} \
    --block_storage_class=${STG_CLASS_BLOCK} \
    --file_storage_class=${STG_CLASS_FILE} \
    --extra-vars=productmaster_instance_scale_config=<TSHIRT_SIZE> \
    --license_acceptance=true

    IBM Storage Scale Container Native storage

    Run the following command to provision the Product Master instance.

    Remember: When you use IBM Storage Scale Container Native storage, both ${STG_CLASS_BLOCK} and ${STG_CLASS_FILE} point to the same storage class, typically ibm-spectrum-scale-sc.
    cpd-cli manage apply-cr \
    --components=productmaster_instance \
    --release=${VERSION} \
    --cpd_instance_ns=${PROJECT_CPD_INSTANCE} \
    --block_storage_class=${STG_CLASS_BLOCK} \
    --file_storage_class=${STG_CLASS_FILE} \
    --extra-vars=productmaster_instance_scale_config=<TSHIRT_SIZE> \
    --license_acceptance=true

    Portworx storage
    cpd-cli manage apply-cr \
    --components=productmaster_instance \
    --release=${VERSION} \
    --cpd_instance_ns=${PROJECT_CPD_INSTANCE} \
    --block_storage_class=${STG_CLASS_BLOCK} \
    --file_storage_class=${STG_CLASS_FILE} \
    --extra-vars=productmaster_instance_scale_config=<TSHIRT_SIZE> \
    --license_acceptance=true

    NFS storage

    Run the following command to provision the Product Master instance.

    Remember: When you use NFS storage, both ${STG_CLASS_BLOCK} and ${STG_CLASS_FILE} point to the same storage class, typically managed-nfs-storage.
    cpd-cli manage apply-cr \
    --components=productmaster_instance \
    --release=${VERSION} \
    --cpd_instance_ns=${PROJECT_CPD_INSTANCE} \
    --block_storage_class=${STG_CLASS_BLOCK} \
    --file_storage_class=${STG_CLASS_FILE} \
    --extra-vars=productmaster_instance_scale_config=<TSHIRT_SIZE> \
    --license_acceptance=true

    AWS with EFS and EBS storage

    Run the following command to provision the Product Master instance.

    cpd-cli manage apply-cr \
    --components=productmaster_instance \
    --release=${VERSION} \
    --cpd_instance_ns=${PROJECT_CPD_INSTANCE} \
    --block_storage_class=${STG_CLASS_BLOCK} \
    --file_storage_class=${STG_CLASS_FILE} \
    --extra-vars=productmaster_instance_scale_config=<TSHIRT_SIZE> \
    --license_acceptance=true

    IBM Cloud with IBM Cloud File Storage only

    Run the following command to provision the Product Master instance.

    Remember: When you use IBM Cloud File Storage storage, both ${STG_CLASS_BLOCK} and ${STG_CLASS_FILE} point to the same storage class, typically ibmc-file-gold-gid or ibm-file-custom-gold-gid.
    cpd-cli manage apply-cr \
    --components=productmaster_instance \
    --release=${VERSION} \
    --cpd_instance_ns=${PROJECT_CPD_INSTANCE} \
    --block_storage_class=${STG_CLASS_BLOCK} \
    --file_storage_class=${STG_CLASS_FILE} \
    --extra-vars=productmaster_instance_scale_config=<TSHIRT_SIZE> \
    --license_acceptance=true

    IBM Cloud with IBM Cloud File Storage and IBM Cloud Block Storage

    Run the following command to provision the Product Master instance.

    cpd-cli manage apply-cr \
    --components=productmaster_instance \
    --release=${VERSION} \
    --cpd_instance_ns=${PROJECT_CPD_INSTANCE} \
    --block_storage_class=${STG_CLASS_BLOCK} \
    --file_storage_class=${STG_CLASS_FILE} \
    --extra-vars=productmaster_instance_scale_config=<TSHIRT_SIZE> \
    --license_acceptance=true

    NetApp Trident

    Run the following command to create the custom resource.

    Remember: When you use NetApp Trident storage, both ${STG_CLASS_BLOCK} and ${STG_CLASS_FILE} point to the same storage class.
    cpd-cli manage apply-cr \
    --components=productmaster_instance \
    --release=${VERSION} \
    --cpd_instance_ns=${PROJECT_CPD_INSTANCE} \
    --block_storage_class=${STG_CLASS_BLOCK} \
    --file_storage_class=${STG_CLASS_FILE} \
    --extra-vars=productmaster_instance_scale_config=<TSHIRT_SIZE> \
    --license_acceptance=true

  4. Verify that the Product Master instance (productmaster-cr) is provisioned correctly by using the following command.
    cpd-cli manage get-cr-status \
    --cpd_instance_ns=${PROJECT_CPD_INSTANCE} \
    --components=productmaster_instance

    Verify that the command returns Completed.

    The provisioning process can take some time to complete. Wait for the process to complete before you log in to Product Master .