Provisioning an instance of OpenPages by using the command line
Before you can use OpenPages®, you must provision an instance.
Before you begin
- Ensure that the cluster has been configured and the service has been installed.
- If your deployment is using an external database, ensure that the database is ready.
- Ensure that you have the information that you need from your cluster administrator. See Preparing to provision an OpenPages instance.
- If you want to integrate OpenPages with Cognos® Analytics, ensure that the Cognos Analytics instance is provisioned.
About this task
You can provision instances by using the command line or the Cloud Pak for Data web client. For information about using the web client, see Provisioning an instance of OpenPages.
If you are using an external database, you need a separate database for each OpenPages instance. The databases can be on the same database server.
When you create the yaml file for an instance, you specify the storage classes to use for the OpenPages application and the database. For more information, see Recommended storage classes for services.
Procedure
Results
The following example shows the configuration for an instance that uses an internal database, NFS
storage, and does not use Cognos
Analytics:
apiVersion: openpages.cpd.ibm.com/v1
kind: OpenPagesInstance
metadata:
name: openpagesinstance1
namespace: zen
annotations:
"ansible.sdk.operatorframework.io/verbosity": "3"
labels:
app.kubernetes.io/name: openpages
app.kubernetes.io/instance: openpagesinstance1
app.kubernetes.io/version: "8.302.1"
app.kubernetes.io/managed-by: ibm-cpd-openpages-operator
spec:
zenControlPlaneNamespace: zen
description: "OpenPages instance"
version: "8.302.1"
autoScaleConfig: true
shutdown: false
metadata:
databaseType: internal
blockStorageClass: nfs-client
fileStorageClass: nfs-client
dbSecretName: ""
dedicatedDbNodes: false
dbNodeLabelValue: ""
scaleConfig: xsmall
enableIntegrationWithCognos: false
license:
accept: true
The following example shows the configuration for an instance that uses an internal database,
uses the
storageVendor
parameter to specify OpenShift
Data Foundation, and uses Cognos
Analytics:apiVersion: openpages.cpd.ibm.com/v1
kind: OpenPagesInstance
metadata:
name: openpagesinstance1
namespace: zen
annotations:
"ansible.sdk.operatorframework.io/verbosity": "3"
labels:
app.kubernetes.io/name: openpages
app.kubernetes.io/instance: openpagesinstance1
app.kubernetes.io/version: "8.302.1"
app.kubernetes.io/managed-by: ibm-cpd-openpages-operator
spec:
zenControlPlaneNamespace: zen
description: "OpenPages instance"
version: "8.302.1"
autoScaleConfig: true
shutdown: false
metadata:
databaseType: internal
storageVendor: ocs
dbSecretName: ""
dedicatedDbNodes: false
dbNodeLabelValue: ""
scaleConfig: xsmall
enableIntegrationWithCognos: true
license:
accept: true
The following example shows the configuration for an instance that uses an internal database,
Portworx storage, and Cognos
Analytics. The configuration also includes the parameters for
custom scaling:
apiVersion: openpages.cpd.ibm.com/v1
kind: OpenPagesInstance
metadata:
name: openpagesinstance1
namespace: zen
annotations:
"ansible.sdk.operatorframework.io/verbosity": "3"
labels:
app.kubernetes.io/name: openpages
app.kubernetes.io/instance: openpagesinstance1
app.kubernetes.io/version: "8.302.1"
app.kubernetes.io/managed-by: ibm-cpd-openpages-operator
spec:
zenControlPlaneNamespace: zen
description: "OpenPages instance"
version: "8.302.1"
autoScaleConfig: false
shutdown: false
metadata:
databaseType: internal
appStorageClass: portworx-shared-gp3
dbBackupStorageClass: portworx-db2-rwx-sc
dbDataStorageClass: portworx-db2-rwo-sc
dbMetaStorageClass: portworx-db2-rwx-sc
dbSecretName: ""
dedicatedDbNodes: false
dbNodeLabelValue: ""
scaleConfig: xsmall
enableIntegrationWithCognos: true
customScaleConfig:
opdb:
resources:
cpu: 4
memory: 12 Gi
opapp:
replicas: 2
resources:
limits:
cpu: 4
memory: 6Gi
requests:
cpu: 4
memory: 6Gi
license:
accept: true
What to do next
After you provision the instance, you need to update Db2 settings and do some post-installation tasks before users use OpenPages.