manage
apply-scheduler
Install or upgrade the scheduling service.
- Required role
- Cluster administrator You must be a cluster administrator to run this command.
Extended description
The scheduling service is a cluster-wide resource can be installed exactly once per cluster.
It is recommended that you install the scheduling service in its own project.
Do not install the scheduling service in the same project as the IBM Cloud Pak® for Data operators.
apply-scheduler
command installs or updates the
following objects for the scheduling service in
the specified project:- Catalog source
- Subscription
- Cluster service version (CSV)
- Custom resource
Syntax
cpd-cli manage apply-scheduler \
--release=<version> \
--license_acceptance=true|false \
--scheduler_ns=<project-name> \
[--case_download=true|false] \
[--from_oci=true|false] \
[--oci_location=<registry-URL>] \
[--catsrc=true|false] \
[--sub=true|false] \
[--preview=true|false]
Arguments
The apply-scheduler
command has no arguments.
Options
Option | Description |
---|---|
--case_download |
Specify whether to download the CASE packages for the specified
components if they are not detected in the work directory. Important: The command
will fail if the CASE packages are not
in the
work directory.
|
--catsrc |
Specify whether to create the catalog source objects for the
specified component. You must create the catalog source for the scheduling service. However, you can create it separately from the subscription.
|
--from_oci |
Download CASE packages from the IBM Cloud Pak Open Container Initiative (OCI) registry rather than from
GitHub. This option is recommended for environments that are not allowed to access GitHub (github.com). Restriction: This setting applies only if you
set
--case_download=true .
|
--license_acceptance |
Specify whether you accept the license terms. You must set this
option to true to install the software.
|
--oci_location |
The URL of the Open Container Initiative (OCI) registry from which
you want to download CASE packages. For example, specify this
option if you want to download the CASE
packages from a private OCI registry. Restriction: This setting applies only if you set
--from_oci=true .
|
--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. If you have multiple versions of IBM Cloud Pak for Data installed on the cluster, it is recommended that you install the scheduling service at the same version as the latest version of IBM Cloud Pak for Data on the cluster.
|
--scheduler_ns |
The project for the scheduling
service.
Do not install the scheduling service in the same project as the IBM Cloud Pak for Data operators.
|
--sub |
Specify whether to create the operator subscriptions for the
specified component. You must create the subscription for the scheduling service. However, you can create it separately from the catalog source.
|
Table 1: Command options
Examples
It is strongly recommended that you use a script to create environment variables with the correct values for your environment. For details, see Best practice: Setting up installation environment variables.
- Install the scheduling service in the
${PROJECT_SCHEDULING_SERVICE}
project -
cpd-cli manage apply-scheduler \ --release=${VERSION} \ --license_acceptance=true \ --scheduler_ns=${PROJECT_SCHEDULING_SERVICE}
- Preview the
oc
commands to install the scheduling service in the${PROJECT_SCHEDULING_SERVICE}
project -
cpd-cli manage apply-scheduler \ --release=${VERSION} \ --license_acceptance=true \ --scheduler_ns=${PROJECT_SCHEDULING_SERVICE} \ --preview=true