Installing Decision Optimization
A project administrator can install Decision Optimization on IBM® Cloud Pak for Data.
- Permissions you need for this task
- You must be an administrator of the OpenShift® project (Kubernetes namespace) where you will deploy Decision Optimization.
- Information you need to complete this task
-
- Decision Optimization
needs only the
restrictedsecurity context constraint (SCC). - Decision Optimization must be installed in the same project as Cloud Pak for Data.
- Decision Optimization requires the Cloud Pak for Data common core services. If the common core services are not installed in the project where you plan to install Decision Optimization, the common core services will be automatically installed when you install Decision Optimization, which will increase the amount of time the installation takes to complete.
- Decision Optimization
uses the following storage classes. If you don't use these storage classes on your cluster, ensure
that you have a storage class with an equivalent definition:Decision Optimization leverages the storage that is provisioned when you install Watson™ Studio.
- Decision Optimization
needs only the
Before you begin
Ensure that the cluster meets the minimum requirements for installing Decision Optimization. For details, see System requirements.
Additionally, ensure that a cluster administrator completed the required Pre-installation tasks for your environment. Specifically, verify that a cluster administrator completed the following tasks:
- Cloud Pak for Data is installed. For details, see Installing Cloud Pak for Data.
- For environments that use a private container registry, such as air-gapped environments, the Decision Optimization software images are mirrored to the private container registry. For details, see Mirroring images to your container registry.
- The cluster is configured to pull the Decision Optimization software images. For details, see Configuring your cluster to pull images.
- The Decision Optimization catalog source exists. For details, see Creating catalog sources.
- The Decision Optimization operator subscription exists. For details, see Creating operator subscriptions.
If these tasks are not complete, the Decision Optimization installation will fail.
Prerequisite services
Before you install Decision Optimization, ensure that the following services are installed and running:
- Watson Studio
- Watson Machine Learning
Procedure
Complete the following tasks to install Decision Optimization:
Installing the service
To install Decision Optimization:
- Log in to Red Hat® OpenShift Container Platform as a user with sufficient permissions to
complete the
task:
oc login OpenShift_URL:port - Create a DODS custom resource to install Decision Optimization. Follow the appropriate guidance
for your environment.Important: By creating a DODS custom resource with
spec.license.accept: true, you are accepting the license terms for Decision Optimization. You can find links to the relevant licenses in IBM Cloud Pak for Data License Information.Create a custom resource with the following format.
cat <<EOF |oc apply -f - apiVersion: dods.cpd.ibm.com/v1beta1 kind: DODS metadata: name: dods-cr # This is the recommended name, but you can change it namespace: project-name # Replace with the project where you installed Cloud Pak for Data spec: license: accept: true license: Enterprise | Standard | WatsonStudioPremium # Specify the license you purchased version: 4.0.9 EOF
When you create the custom resource, the Decision Optimization operator installs Decision Optimization.
Verifying the installation
When you create the custom resource, the Decision Optimization operator processes the contents of the custom resource and starts up the
microservices that comprise Decision Optimization. Decision Optimization is installed when the DODS status is Completed.
To check the status of the installation:
- Change to the project where you installed Decision Optimization:
oc project project-name - Get the status of Decision Optimization (dods-cr):
oc get DODS dods-cr -o jsonpath='{.status.dodsStatus} {"\n"}'Decision Optimization is ready when the command returns
Completed
Choosing a service upgrade plan
You can choose how Decision Optimization is upgraded when you install a newer version of the Decision Optimization operator on the cluster.
- Automatic upgrade (recommended)
-
If you want Decision Optimization to be automatically upgraded when you install a newer version of the Decision Optimization operator on the cluster, remove the
versionentry from the DODS custom resource.To remove the
versionentry, run the following command. You must update the command with the appropriate project name before you run the command.oc patch DODS dods-cr \ --namespace project-name \ --type=json \ --patch '[{ "op": "remove", "path": "/spec/version" }]' - Manual upgrade
-
If you want to manually upgrade Decision Optimization after you install a newer version of the Decision Optimization operator, you can pin the installation at a specific version in the DODS custom resource.
By default, when you create the DODS custom resource, it includes the
versionentry, so no additional action is required.If you removed the
versionentry from the DODS custom resource, run the following command to pin the installation at Version 4.0.9. You must update the command with the appropriate project name before you run the command.oc patch DODS dods-cr \ --namespace project-name \ --type=merge \ --patch '{"spec": {"version":"4.0.9"}}'For a list of operand versions supported by the Decision Optimization operator, see Operator and operand versions.
What to do next
The service is ready to use. For details, see Building Decision Optimization models.