manage
apply-cr
Install or upgrade the specified components. The command creates or updates the custom resource objects with the appropriate settings.
- Required role
- Instance administrator You must be an administrator of the projects that are associated with an instance to run this command.
Extended description
To install IBM Cloud Pak for Data, you must install the
components that comprise the platform. When you install a component, the apply-cr
command creates a custom resource object with the
appropriate settings.
Run the apply-cr
to install or upgrade the appropriate
components for your business needs. You can install the components in a batch by specifying a
comma-separated list of components, or you can install components individually.
Syntax
cpd-cli manage apply-cr \
--components=<comma-separated-list-of-component-names> \
--release=<version> \
--license_acceptance=true|false \
--cpd_instance_ns=<project-name> \
[--upgrade=true|false] \
[--tethered_instance_ns=<project-name>] \
[--param-file=<file-name>] \
[--storage_vendor=ocs|portworx] \
[--storage_class=<storage-class-name>] \
[--file_storage_class=<RWX-storage-class>] \
[--block_storage_class=<RWO-storage-class>] \
[--parallel_num=<integer>] \
[--preview=true|false] \
[-vv][-vv][-vvv]
Arguments
The apply-cr
command has no arguments.
Options
Option | Description |
---|---|
--block_storage_class |
If
the service requires block storage, specify a storage class that supports ReadWriteOnce (RWO)
access.
|
--components |
A comma-separated list of the components that you want to install or
upgrade.
|
--cpd_instance_ns |
The project (namespace) where you want to install the control plane
and services.
|
--file_storage_class |
If
the service requires file storage, specify a storage class that supports ReadWriteMany (RWX)
access.
|
--license_acceptance |
Specify whether you accept the license terms. You must set this
option to true to install the software.
|
--parallel_num |
The number of custom resources that are created or updated at the
same time. By default, up to 4 components are created or updated at the same time. Adjust the number based on the resources available on your cluster. For example, if you have a cluster with minimal resources, decrease the number of components that are updated in parallel to reduce resource consumption.
|
--param-file |
The name of a file that includes additional
parameters. The file must be in the
|
--preview |
Preview the commands that run when you issue this CLI
command. The command issues a series of
The
|
--release |
The release that you want to install or upgrade
to.
|
--storage_class |
The name of a RWX or RWO storage class to use when provisioning
storage during installation.
|
--storage_vendor |
The type of storage that you are using. This setting uses the
recommended storage class when provisioning storage during
installation. Restriction: This option applies only if you
are using the recommended storage class names with OpenShift
Data Foundation or Portworx.
|
--tethered_instance_ns |
A
project (namespace) that is tethered to the project where IBM Cloud Pak® for Data is installed. Important: You must run the
setup-tethered-ns command before you run the apply-cr
command with this option.
|
--upgrade |
Specify whether you are upgrading an existing installation. You must
set this option to true to upgrade the software.
|
-v -vv -vvv |
Display verbose output. Options are listed from least verbose to the most verbose.
|
Examples
It is strongly recommended that you use a script to create environment variables with the correct values for your environment. For details, see Setting up installation environment variables.
- Install the specified components on a cluster that uses the recommended storage class names for OpenShift Data Foundation
-
cpd-cli manage apply-cr \ --components=${COMPONENTS} \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --storage_vendor=ocs \ --license_acceptance=true
- Preview the
oc
commands to install the specified components on a cluster that uses Portworx storage with custom storage class names -
cpd-cli manage apply-cr \ --components=${COMPONENTS} \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --file_storage_class=${FILE_STORAGE} \ --block_storage_class=${FILE_BLOCK} \ --license_acceptance=true \ --preview=true