Automation assets deployment by using the CLI
Use the CLI to deploy IBM Automation foundation assets (Automation assets), an instance type in IBM Cloud Pak® for Integration that lets you store, manage, and retrieve integration assets.
Before you begin
Complete these prerequisites before you create an Automation assets instance. An OpenShift cluster administrator should carry out the following tasks (for more information, see OpenShift roles and permissions):
Ensure that the operator for Automation assets is installed. For more information, see Installing the operators by using the CLI.
If you are using an online OpenShift cluster, confirm that an entitlement key from the IBM Entitled Registry is configured. For more information, see Finding and applying your entitlement key by using the CLI (online installation).
Appropriate storage is configured. For more information, see Storage considerations.
Deploying the Automation assets instance by using a block storage class
To create an Automation assets instance by using block storage class in single replica mode, create a file called
aa-instance.yaml:apiVersion: integration.ibm.com/v1beta1 kind: AssetRepository metadata: name: production namespace: cp4i labels: backup.integration.ibm.com/component: assetrepository spec: designerAIFeatures: enabled: true license: accept: true license: L-QYVA-B365MB replicas: 1 singleReplicaOnly: true storage: assetDataVolume: class: <RWO_STORAGE_CLASS> couchVolume: class: <RWO_STORAGE_CLASS> version: 4.1In the
aa-instance.yamlfile, update these fields as indicated:metadata.name- enter a name for the new instance, or use the default.metadata.namespace- enter the namespace in which to deploy the instance.spec.license.license- keep the default value, unless you change the value forspec.version. For more information about specific license versions, see "Table of license versions" in Licensing.spec.designerAIFeatures.enabled- if you do not wish to have AI features enabled, set tofalse.spec.storage.assetDataVolumeandspec.storage.couchVolume- configure the storage class for each. Replace<RWO_STORAGE_CLASS>with a block storage class that supports ReadWriteOnce (RWO) volumes. For more information, see Storage considerations.
For additional configuration options, see Configuring Automation assets.
After you edit the Kubernetes resource, apply it to the OpenShift cluster:
oc apply -f aa-instance.yaml
Deploying the Automation assets instance with a file storage class
To create an Automation assets instance using file storage class in scalable mode, create a file called
aa-instance.yaml:apiVersion: integration.ibm.com/v1beta1 kind: AssetRepository metadata: name: production namespace: cp4i labels: backup.integration.ibm.com/component: assetrepository spec: designerAIFeatures: enabled: true license: accept: true license: L-QYVA-B365MB replicas: 1 storage: assetDataVolume: class: <RWX_STORAGE_CLASS> couchVolume: class: <RWO_STORAGE_CLASS> version: 4.1In the
aa-instance.yamlfile, update these fields as indicated:metadata.name- enter a name for the new instance, or use the default.metadata.namespace- enter the namespace in which to deploy the instance.spec.license.license- keep the default value, unless you change the value forspec.version. For more information about specific license versions, see "Table of license versions" in Licensing.spec.designerAIFeatures.enabled- if you do not wish to have AI features enabled, set tofalse.spec.storage.assetDataVolume- configure the storage class. Replace<RWX_STORAGE_CLASS>with a file storage class that supports ReadWriteMany (RWX) volumes. For more information, see Storage considerations.spec.storage.couchVolume- configure the storage class. Replace<RWO_STORAGE_CLASS>with a block storage class that supports ReadWriteOnce (RWO) volumes. For more information, see Storage considerations.
For additional configuration options, see Using Automation assets.
After you edit the Kubernetes resource, apply it to the OpenShift cluster:
oc apply -f aa-instance.yaml
What to do next
To learn what you can do with Automation assets, see Using Automation assets.
Troubleshooting
For information about known issues, workarounds, and troubleshooting information, see Known Limitations.