oadp
install
Install Cloud Pak for Data Openshift APIs for Data Protection (OADP) backup and restore components.
Syntax
cpd-cli oadp install \
--component=<cpd-cli-oadp-component> \
--cpdbr-hooks-image-prefix=<cpdbr-pod-image-prefix> \
--foundation-namespace=<cpd-foundational-services-namespace> \
--operators-namespace=<cpd-service-operators-namespace> \
[--api-pod-cpu-limit=<cpdbr-api-cpu-limit-value>] \
[--api-pod-cpu-request=<cpdbr-api-cpu-request-limit-value>] \
[--api-pod-mem-limit=<cpdbr-api-mem-limit-value>] \
[--api-pod-mem-request=<cpdbr-api-mem-request-limit-value>] \
[--cpd-namespace=<cpd-control-plane-namespace>] \
[--cpdbr-hooks-pod-cpu-limit=<cpdbr-pod-cpu-limit>] \
[--cpdbr-hooks-pod-cpu-request=<cpdbr-pod-cpu-request>] \
[--cpdbr-hooks-pod-mem-limit=<cpdbr-pod-mem-limit>] \
[--cpdbr-hooks-pod-mem-request=<cpdbr-pod-mem-request>] \
[--grant-image-puller-role=true|false] \
[--image-prefix=<image-registry-prefix>] \
[--log-level=info|debug|warn|error|panic] \
[--namespace=<namespace-name>] \
[--recipe-type=all|br|metro-dr] \
[--service-account=<service-account-name>] \
[--tenant-operator-namespace] \
[--upgrade=true|false] \
[--verbose] \
[--wait-timeout=<h,m,s>]
Arguments
The install
command has no
arguments.
Options
Option | Description |
---|---|
--api-pod-cpu-limit |
The CPU limit for the cpdbr-api
pod. A value of 0 indicates unbounded.
|
--api-pod-cpu-request |
The CPU request setting for the
cpdbr-api pod. A value of 0 indicates unbounded.
|
--api-pod-mem-limit |
The memory limit for the cpdbr-api
pod. A value of 0 indicates unbounded.
|
--api-pod-mem-request |
The memory request setting for the
cpdbr-api pod. A value of 0 indicates unbounded.
|
--component |
Specify the cpd-cli oadp
component to install.
|
--cpd-namespace |
The Cloud Pak for Data control
plane namespace in which the utility operates.
|
--cpdbr-hooks-image-prefix |
Specify the image prefix for the
cpdbr service pod.
|
--cpdbr-hooks-pod-cpu-limit |
Specify the CPU limit for the
cpdbr service pod. A value of 0 indicates unbounded.
|
--cpdbr-hooks-pod-cpu-request |
Specify the CPU request value for
the cpdbr service pod. A value of 0 indicates unbounded.
|
--cpdbr-hooks-pod-mem-limit |
Specify the memory limit for the
cpdbr service pod. A value of 0 indicates unbounded.
|
--cpdbr-hooks-pod-mem-request |
Specify the memory request value
for the cpdbr service pod. A value of 0 indicates
unbounded.
|
--foundation-namespace |
Specify the Cloud Pak for Data
foundational services namespace.
|
--grant-image-puller-role |
Grants Cloud Pak for Data instance
namespaces permission to pull images from the OADP/Velero namespace. This option is used for
air-gapped installations.
|
|
Display command
help.
|
--image-prefix |
Specify the image registry
prefix.
|
--log-level |
The command log
level.
|
|
The namespace name in which the
utility should operate.
|
--operators-namespace |
Specify the Cloud Pak for Data
Operators namespace.
|
--recipe-type |
The type of backup and restore
recipe to apply.
|
--service-account |
Specify the service
account.
|
--tenant-operator-namespace |
Restrict the scope of backup or
restore commands to tenant operand namespaces that include tenant specific Cloud Pak Foundation
Service Operators and Cloud Pak for Data Operators only.
|
5.0.2
--upgrade |
Upgrade the cpdbr-tenant service
component.
|
--verbose |
Logs include more detailed
messages.
|
--wait-timeout |
The wait timeout setting ('h' for
hours, 'm' for minutes, 's' for seconds).
|
Examples
It is strongly recommended that you use a script to create environment variables with the correct values for your environment. For more information, see Setting up installation environment variables.
After installing IBM Storage Fusion, NetApp Astra Control Center, or Portworx Enterprise, install the following services to enable backup or restore for an entire Cloud Pak for Data deployment.
- Install the REST service.
-
cpd-cli oadp install \ --image-prefix=registry.redhat.io/ubi9 \ --log-level=warn
- Install the
cpdbr-hooks
service for the Cloud Pak for Data control plane namespace. -
cpd-cli oadp install \ --cpd-namespace=${PROJECT_CPD_INST_OPERANDS} \ --component=cpdbr-hooks \ --cpdbr-hooks-image-prefix=icr.io/cpopen/cpd \ --log-level=warn
- Install the
cpdbr-ops-hooks
service for the Cloud Pak for Data operators namespace. -
cpd-cli oadp install \ --component=cpdbr-ops-hooks \ --cpdbr-hooks-image-prefix=icr.io/cpopen/cpd \ --foundation-namespace=ibm-common-services \ --operators-namespace=ibm-common-services \ --log-level=warn
- Install the cpdbr-tenant service when using IBM Storage Fusion for backup and restore
-
cpd-cli oadp install \ --component=cpdbr-tenant \ --cpdbr-hooks-image-prefix=icr.io/cpopen/cpd \ --tenant-operator-namespace=${PROJECT_CPD_INST_OPERATORS} \ --recipe-type=br \ --log-level=debug \ --verbose
- 5.0.2 Upgrade the cpdbr-tenant service when using IBM Storage Fusion for backup and restore
-
cpd-cli oadp install \ --upgrade=true \ --component=cpdbr-tenant \ --cpdbr-hooks-image-prefix=icr.io/cpopen/cpd \ --tenant-operator-namespace=${PROJECT_CPD_INST_OPERATORS} \ --recipe-type=br \ --log-level=debug \ --verbose