Before you begin
Best practice: You can run the
commands in this task exactly as written if you use your installation environment variables script.
Ensure that you source the environment variables before you run the commands in this
task.
About this task
Use the cpd-cli manage case-download command to generate cluster-scoped resources for
the scheduling service.
The command generates a YAML file named cluster_scoped_resources.yaml that defines the following resources for the
scheduling service:
- CRDs
- Cluster roles
- Cluster role bindings
- Webhooks
After you review the YAML files, use the cluster_scoped_resources.yaml file to apply the resources to the cluster.
Procedure
- Generate the cluster-scoped resource definitions for the scheduling service:
The command requires the
CASE packages to be on the
workstation. Run the appropriate command for your environment:
The CASE packages are already on the client workstation
cpd-cli manage case-download \
--components=scheduler \
--release=${VERSION} \
--patch_id=${PATCH_ID} \
--scheduler_ns=${PROJECT_SCHEDULING_SERVICE} \
--cluster_resources=true
Download the CASE package from GitHub (github.com/IBM)
cpd-cli manage case-download \
--components=scheduler \
--release=${VERSION} \
--patch_id=${PATCH_ID} \
--scheduler_ns=${PROJECT_SCHEDULING_SERVICE} \
--cluster_resources=true
Download the CASE package from the IBM
Cloud Pak Open Container Initiative repository
cpd-cli manage case-download \
--components=scheduler \
--release=${VERSION} \
--patch_id=${PATCH_ID} \
--from_oci=true \
--scheduler_ns=${PROJECT_SCHEDULING_SERVICE} \
--cluster_resources=true
Download the CASE packages from your own Open Container Initiative repository
cpd-cli manage case-download \
--components=scheduler \
--release=${VERSION} \
--patch_id=${PATCH_ID} \
--from_oci=true \
--oci_location=${OCI_REGISTRY_LOCATION} \
--scheduler_ns=${PROJECT_SCHEDULING_SERVICE} \
--cluster_resources=true
- Change to the
work
directory. The default location of the work directory is cpd-cli-workspace/olm-utils-workspace/work.
- 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.
- Apply the cluster-scoped resources for the scheduling service from the cluster_scoped_resources.yaml file:
oc apply -f cluster_scoped_resources.yaml \
--server-side \
--force-conflicts
- Optional: If you want a record of the resources that
you generated for the scheduling service,
rename the cluster_scoped_resources.yaml
mv cluster_scoped_resources.yaml ${VERSION}-${PROJECT_SCHEDULING_SERVICE}-cluster_scoped_resources.yaml
- Generate the cluster-scoped resource definitions for the Backup Restore Orchestration service:
The command requires the
CASE packages to be on the
workstation. Run the appropriate command for your environment:
The CASE packages are already on the client workstation
cpd-cli manage case-download \
--components=br_orchestration \
--release=${VERSION} \
--patch_id=${PATCH_ID} \
--operator_ns=${PROJECT_SCHEDULING_BR_SVC} \
--br_operator_ns=${PROJECT_SCHEDULING_BR_SVC} \
--cluster_resources=true
Download the CASE package from GitHub (github.com/IBM)
cpd-cli manage case-download \
--components=br_orchestration \
--release=${VERSION} \
--patch_id=${PATCH_ID} \
--operator_ns=${PROJECT_SCHEDULING_BR_SVC} \
--br_operator_ns=${PROJECT_SCHEDULING_BR_SVC} \
--cluster_resources=true
Download the CASE package from the IBM
Cloud Pak Open Container Initiative repository
cpd-cli manage case-download \
--components=br_orchestration \
--release=${VERSION} \
--patch_id=${PATCH_ID} \
--from_oci=true \
--operator_ns=${PROJECT_SCHEDULING_BR_SVC} \
--br_operator_ns=${PROJECT_SCHEDULING_BR_SVC} \
--cluster_resources=true
Download the CASE packages from your own Open Container Initiative repository
cpd-cli manage case-download \
--components=br_orchestration \
--release=${VERSION} \
--patch_id=${PATCH_ID} \
--from_oci=true \
--oci_location=${OCI_REGISTRY_LOCATION} \
--operator_ns=${PROJECT_SCHEDULING_BR_SVC} \
--br_operator_ns=${PROJECT_SCHEDULING_BR_SVC} \
--cluster_resources=true
- Apply the cluster-scoped resources for the Backup Restore Orchestration service from the cluster_scoped_resources.yaml file:
oc apply -f cluster_scoped_resources.yaml \
--server-side \
--force-conflicts
- Optional: If you want a record of the resources that you
generated for the Backup Restore Orchestration service, rename the
cluster_scoped_resources.yaml
mv cluster_scoped_resources.yaml ${VERSION}-${PROJECT_SCHEDULING_BR_SVC}-cluster_scoped_resources.yaml
What to do next
Now that you've created the cluster-scoped resources for the shared cluster components,
you're ready to complete Creating image pull secrets for shared cluster components.