If the Cloud Pak for Data
scheduling service is installed, back up the
service with the Cloud Pak for Data
OADP backup and restore
utility.
About this task
- Permissions needed for this task
- If you are running the utility in Kubernetes
mode, log in as a user with cluster administrator rights.
If you are running the utility in REST
mode, make sure that the REST client is configured so
that a Cloud Pak for Data administrator can run backup
and checkpoint commands.
For more information about the OADP backup and restore utility, including a list of
commands that you can run, see the cpd-cli oadp
reference documentation.
Best practice: You can run the commands in
this task exactly as written if you set up environment variables. For instructions, see
Setting up installation environment
variables.
Ensure that you source the
environment variables before you run the commands in this task.
Procedure
- Log in to Red Hat®
OpenShift Container Platform as a cluster
administrator.
${OC_LOGIN}
Remember:
OC_LOGIN
is an alias for the oc login
command.
-
Back up the Cloud Pak for Data scheduling service by
running the following command:
cpd-cli oadp backup create ${PROJECT_SCHEDULING_SERVICE}-b1 \
--include-namespaces ${PROJECT_SCHEDULING_SERVICE} \
--include-resources='namespaces,operatorgroups,configmaps,catalogsources.operators.coreos.com,subscriptions.operators.coreos.com,scheduling.scheduler.spectrumcomputing.ibm.com,customresourcedefinitions.apiextensions.k8s.io' \
--skip-hooks \
--log-level=debug \
--verbose
In an air-gapped environment, additionally specify the appropriate
--image-prefix
.
The cluster pulls images from the IBM
Entitled Registry
Restriction: This option is available only if the cluster can connect to the
internet.
cpd-cli oadp backup create ${PROJECT_SCHEDULING_SERVICE}-b1 \
--include-namespaces ${PROJECT_SCHEDULING_SERVICE} \
--include-resources='namespaces,operatorgroups,configmaps,catalogsources.operators.coreos.com,subscriptions.operators.coreos.com,scheduling.scheduler.spectrumcomputing.ibm.com,customresourcedefinitions.apiextensions.k8s.io' \
--skip-hooks \
--image-prefix=registry.redhat.io/ubi9 \
--log-level=debug \
--verbose
The cluster pulls images from a private container registry
cpd-cli oadp backup create ${PROJECT_SCHEDULING_SERVICE}-b1 \
--include-namespaces ${PROJECT_SCHEDULING_SERVICE} \
--include-resources='namespaces,operatorgroups,configmaps,catalogsources.operators.coreos.com,subscriptions.operators.coreos.com,scheduling.scheduler.spectrumcomputing.ibm.com,customresourcedefinitions.apiextensions.k8s.io' \
--skip-hooks \
--image-prefix=${PRIVATE_REGISTRY_LOCATION}/ubi9 \
--log-level=debug \
--verbose