Installing IBM Cloud Pak for Watson AIOps on Google Cloud Platform
Follow this procedure if you want to install IBM Cloud Pak® for Watson AIOps on a Red Hat® OpenShift® Container Platform cluster on Google Cloud Platform (GCP).
Installation procedure
1. Create a Red Hat OpenShift cluster on GCP
Install a Red Hat OpenShift cluster on GCP. For more information, see the Red Hat documentation Installing on GCP.
2. Configure storage
Configure one of the following RWX storage options for IBM Cloud Pak for Watson AIOps:
- Red Hat® OpenShift® Data Foundation (ODF)
- Portworx Enterprise
2.1 Configuring ODF
To configure ODF storage for your IBM Cloud Pak for Watson AIOps deployment, use the instructions in the Red Hat documentation Deploying and managing OpenShift Data Foundation using Google Cloud.
Important: Read the statement about the technology preview status of Red Hat® OpenShift® Data Foundation on GCP in the previous link.
2.2 Configuring Portworx Enterprise
To configure Portworx storage for your IBM Cloud Pak for Watson AIOps on GCP deployment, use the following instructions.
2.2.1 Create a Portworx spec
A Portworx Enterprise spec is required to set up a Portworx storage cluster. For more information, see GCP in the Portworx documentation.
-
From a browser, go to https://portworx.com, select LOGIN, and log in to your Portworx account. Select to use the Portworx Enterprise edition. Then, click Continue, and Continue again on the Portworx product comparison page.
-
On the Spec Generator - Enterprise page, enter or select the following settings and then click Next.
- Select the checkbox for Use the Portworx Operator.
- Select 2.10 for the Portworx Version.
- Select the Built-in radio button for ETCD.
-
On the next page, set the following values and then click Next.
- For Select your environment, select the Cloud radio button.
- Under Select Cloud Platform, select Google cloud/GKE.
- Under Configure storage devices, select Create Using a Spec
- Under Size(GB), select 2000 GB
-
Click Next to skip the Network configuration page.
-
On the Customize page, select Google Kubernetes Engine (GKE), then click Finish, and click Agree to accept the license agreement.
-
In the spec page, highlight and select the live download URL.
For example,
https://install.portworx.com/2.10?operator=true&mc=false&kbver=&b=true&kd=type%3DPremium_LRS%2Csize%3D150&s=%22type%3DPremium_LRS%2Csize%3D2000%22&c=px-cluster-e0fb19ba-4e45-4175-b92e-18003948b965&aks=true&stork=true&csi=true&mon=true&tel=false&st=k8s&promop=true
2.2.2 Configure GCP for Portworx
-
Open the worker node ports 17001-17020 to the master node network. For more information, see Firewall policy rules in the GCP documentation.
-
The worker node's service account (created by the Red Hat OpenShift installer) must have the following roles:
Compute Admin Service Account User Kubernetes Engine Cluster Viewer
You can view and edit the roles by opening the GCP console, and selecting IAM & Admin > Service Accounts. For more information, see
in the GCP documentation.
2.2.3 Installing the Portworx operator from Red Hat OpenShift Container Platform
-
Open the Red Hat OpenShift Container Platform console for your GCP cluster.
-
Go to Operators > OperatorHub.
-
Search for Portworx Enterprise. Then, click Install > Install.
Warning: Do not click Create StorageCluster. You will create the storage cluster in the next step, with the spec that you saved.
-
Portworx Enterprise should now be listed under Operators > Installed Operators.
2.2.4 Create the Portworx storage cluster
-
From the command line, run the following command to load the Portworx spec that you created into the GCP cluster.
export PORTWORX_SPEC_URL=<spec_URL> curl -ks "${PORTWORX_SPEC_URL}" | oc apply -f -
Where
<spec_URL>
is the spec URL that you copied earlier. -
From the console, go to Operators > Installed Operators > Portworx Enterprise and select the StorageClusters tab. The storage cluster is ready when the Status changes from Phase: Initializing to Phase: Online.
-
Create the Portworx storage classes by running the following commands.
Create the
portworx-fs
storage class.cat << _EOF_ | oc apply -f - kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: portworx-fs provisioner: kubernetes.io/portworx-volume parameters: repl: "3" io_profile: "db" priority_io: "high" sharedv4: "true" allowVolumeExpansion: true _EOF_
Create the
portworx-aiops
storage class.cat << _EOF_ | oc apply -f - kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: portworx-aiops provisioner: kubernetes.io/portworx-volume parameters: repl: "3" priority_io: "high" snap_interval: "0" io_profile: "db" block_size: "64k" sharedv4: "true" allowVolumeExpansion: true _EOF_
3. Install IBM Cloud Pak for Watson AIOps
You are now ready to install IBM Cloud Pak for Watson AIOps.
Follow the procedure for installing IBM Cloud Pak for Watson AIOps from step 3 in one of the following topics, according to your requirements:
- Starter installation (CLI)
- Online production installation of IBM Cloud Pak for Watson AIOps (console method)
- Online production installation of IBM Cloud Pak for Watson AIOps (CLI method)
When you create an instance of the IBM Cloud Pak for Watson AIOps custom resource, set the storage as follows:
For ODF storage, use:
storageClass: ocs-storagecluster-cephfs
storageClassLargeBlock: ocs-storagecluster-ceph-rbd
For Portworx storage, use:
storageClass: portworx-fs
storageClassLargeBlock: portworx-aiops