重要信息: IBM Cloud Pak® for Data 4.7 版本将于 2025 年 7 月 31 日结束支持 (EOS)。 欲了解更多信息,请参阅
IBM Cloud Pak for Data 版本 4.X 的
停止服务公告。
在 IBM Cloud Pak for Data 4.7 版本支持结束之前,升级到 IBM Software Hub 5.1 版本。 更多信息,请参阅 IBM Software Hub 版本 5.1 文档中的升级 IBM Software Hub。
您可以通过创建定制资源来创建 Db2® Data Management Console 服务实例。 此任务是供应 Db2 Data Management Console 服务的备用任务。
准备工作
您只能为 IBM Cloud Pak for Data 创建一个 Db2 Data Management Console 服务实例。 因此,在创建服务实例之前,请检查集群中是否存在任何 Db2 Data Management Console 服务的实例。
关于本任务
您可以通过供应服务在 UI 中创建 Db2 Data Management Console 实例。 或者,您可以通过使用命令行创建定制资源来创建 Db2 Data Management Console 服务实例。
过程
- 以具有足够许可权的用户身份登录到 Red Hat® OpenShift® Container Platform 以完成任务:
oc login OpenShift_URL:port
- 获取 Db2 Data Management Console (dmc-addon) 的状态:
oc get $(oc get Dmcaddon -o name -n ${PROJECT_CPD_INST_OPERANDS}) -o jsonpath='{.status.dmcAddonStatus} {"\n"}' -n project-name
当命令返回时, Db2 Data Management Console 已就绪Completed
- 创建 Dmc 定制资源。 请遵循适合您所在环境的指导。
使用建议的存储类名
创建具有以下格式的定制资源。
cat <<EOF |oc apply -f -
apiVersion: dmc.databases.ibm.com/v1
kind: Dmc
metadata:
name: data-management-console
annotations:
ansible.operator-sdk/reconcile-period: "30s"
ansible.sdk.operatorframework.io/verbosity: "4"
spec:
version: 4.7.0
description: "Data Management Console"
scaleConfig: small|medium|large # Specify the scale. Medium scale is recommended.
storageVendor: nfs | ocs | portworx # Specify the type of storage to use, such as ocs
storageSize: storage-size # Specify the storage size. For example, 10Gi
license:
accept: true
license: Enterprise | Standard # Specify the license you purchased
EOF
使用定制存储类名
创建具有以下格式的定制资源。
cat <<EOF |oc apply -f -
apiVersion: dmc.databases.ibm.com/v1
kind: Dmc
metadata:
name: data-management-console
annotations:
ansible.operator-sdk/reconcile-period: "30s"
ansible.sdk.operatorframework.io/verbosity: "4"
spec:
version: 4.7.0
description: "Data Management Console"
scaleConfig: small|medium|large # Specify the scale. Medium scale is recommended.
storageClass: storage-class-name # Specify the storage class name.
storageSize: storage-size # Specify the storage size. For example, 10Gi
license:
accept: true
license: Enterprise | Standard # Specify the license you purchased
EOF
使用块存储类和文件存储类名
创建具有以下格式的定制资源。
cat <<EOF |oc apply -f -
apiVersion: dmc.databases.ibm.com/v1
kind: Dmc
metadata:
name: data-management-console
annotations:
ansible.operator-sdk/reconcile-period: "30s"
ansible.sdk.operatorframework.io/verbosity: "4"
spec:
version: 4.7.0
description: "Data Management Console"
scaleConfig: small|medium|large # Specify the scale. Medium scale is recommended.
blockStorageClass: block-storage-class-name # Specify the block storage class name.
fileStorageClass: file-storage-class-name # Specify the file storage class name.
storageSize: storage-size # Specify the storage size. For example, 10Gi
license:
accept: true
license: Enterprise | Standard # Specify the license you purchased
EOF
注: Db2 Data Management Console 使用以下存储类:
- OpenShift 容器存储器:
ocs-storagecluster-cephfs
- NFS:
managed-nfs-storage
- Portworx:
portworx-shared-gp3
有关 Db2 Data Management Console 服务的存储类的更多信息,请参阅
存储需求。
创建定制资源时,将创建 Db2 Data Management Console 服务实例。