ODM ICP and Ruleset Install
In this tutorial we will cover how to install ODM from an ICP Catalog onto our kubernetes cluster, and deploy the product recommendations ruleset in the decision runner server.
Update: 08/24/2018 Author: Zach Silverstein
- ODM administrators or Operation staffs willing to understand the ODM deployment on kubernetes.
- Developers who want to get an environment up and running as quickly as possible.
- Access to an ICP cluster with ICP version 184.108.40.206 or later (tested on 220.127.116.11).
- Access to ICP Catalog with admin role
- A zip file of our Rules which can be found in the product recommendation project in the folder odm/rulesets/ProductRecommendation/output/
Installing ODM on ICP
Here we can see we have found our ODM Package to install, next we select that package.
Next we shall read the documentation available. In this example we can gather important information such as the H2 Server needing 5 Gbs of Persistent storage. We will select configure to enter the necessary information
We will give our release name as bc-odm and then select our targeted namespace.
We do not need to change anything in the previous screen shot
We will be changing 2 things in the H2 Database.
- You can let kubernetes try to provision a persistence volume automatically, therefore to do so check the Use dynamic Provisioning for Persistent volume so that it is enabled. If you prefer to control, create a PV with 5 G bytes storage, and a HostPath or NFS.
- Change the 2 to a 5 for the Storage Size for persistent volume
No other changes are needed to be made for any other options. then click
install at the bottom
After receiving your successful message let's navigate to our dropdown and find our instance. Click the hamburger icon on left (three horizontal) bars, and then select workloads, and finally helm releases.
Now we can see the ODM helm release information: deployed namespace, service, deployment, pod... At the bottom we can view the userids and password to connect to each element of ODM. We can also see the instance we need to navigate to.
Select the link listed inside the
service sub part to navigate to more details
Select the Node Port to navigate to the asset. This should take you to the ODM Home Page. Note that you may need to log in with associated info.
Installing the Ruleset
The RuleApp was created and updated using Rule Designer, the developer tool. We want to expose the decision service in the Decision Center consoles so business users can browse the ruleset content, modify the business rules and tables and deploy the ruleset to the target runtime. With ICP ODM deployment all those components are available for you: decision center, decision server, rule execution server administration console.
Method 1 Deploying Rule App to RES via Rule Designer
Method 2 Uploading Rule App to Decision Center Business Console and Deploying from there
- If you have already imported your project into Rule Designer, export the decision service
- If you are using the rule service we have provided, download the required files, these are the top two shown below. Please be sure that when they are download they have the necessary .project and .ruleproject files