安装 Red Hat OpenShift Serverless Knative Eventing (当连接到互联网时)

若计划安装 IBM watsonx AssistantIBM watsonx™ Orchestrate,则集群中必须 IBM Events 已安装 Red Hat OpenShift Serverless Knative Eventing 和。 如果您的集群能够连接到互联网,请完成此任务以安装软件。

安装阶段
  • 你不在这里。 设置客户端工作站
  • 你不在这里。 设置集群
  • 你不在这里。 收集所需信息
  • 你不在这里。 准备在受限网络中运行安装程序
  • 你不在这里。 准备从私有容器注册表运行安装程序
  • 您在此处图标。 为集群做准备 IBM Software Hub
  • 你不在这里。 准备安装一个实例 IBM Software Hub
  • 你不在这里。 安装一个实例 IBM Software Hub
  • 你不在这里。 设置 control plane
  • 你不在这里。 安装解决方案与服务
谁需要完成这项任务?

集群管理员必须由集群管理员安装此软件。

你需要在什么时候完成这项任务?
仅当您计划安装以下服务之一时,才执行此任务:
  • watsonx Assistant
  • watsonx Orchestrate

一次性配置IBM Events Red Hat OpenShift Serverless Knative Eventing 仅需安装一次,即可供集群中所有 watsonx Orchestrate 或 实例 watsonx Assistant 共享使用。

开始之前

  1. 确保项目 ibm-knative-events 存在。 如果不存在,请运行:
    oc new-project ibm-knative-events
最佳实践: 若使用安装环境变量脚本,可直接按此任务中的命令执行。

请确保在本任务中执行命令之前已设置环境变量。

关于本任务

您必须完成的步骤取决于您计划安装 IBM Software Hub 的版本。

过程

5.3.0 若您正在安装 IBM Software Hub 版本 5.3.0 ,请完成以下步骤以安装 软件 Red Hat OpenShift Serverless Knative Eventing

  1. 登录 cpd-cli 到集群 Red Hat OpenShift Container Platform
    ${CPDM_OC_LOGIN}
    请记住: CPDM_OC_LOGIN 是一个别名,代表 命令 cpd-cli manage login-to-ocp
  2. 通过运行命令 deploy-knative-eventing 安装软件 Red Hat OpenShift Serverless Knative Eventing
    注意: 默认情况下,该 deploy-knative-eventing 命令会将未使用的 Red Hat OpenShift Serverless Knative Eventing 副本缩放为 0(零)。 为防止此行为,请在命令末尾添加以下内容:
    --patch_redhat_crd=false

    您运行的命令取决于您从何处下载 CASE 软件包:


    从 GitHub 下载 CASE

    您运行的命令取决于集群中的存储:

    Portworx 存储
    cpd-cli manage deploy-knative-eventing \
    --release=${VERSION} \
    --storage_vendor=portworx
    所有其他存储
    cpd-cli manage deploy-knative-eventing \
    --release=${VERSION} \
    --block_storage_class=${STG_CLASS_BLOCK}

    从 IBM Cloud Pak 开放容器计划下载 CASE
    Portworx 存储
    cpd-cli manage deploy-knative-eventing \
    --release=${VERSION} \
    --storage_vendor=portworx \
    --from_oci=true
    所有其他存储
    cpd-cli manage deploy-knative-eventing \
    --release=${VERSION} \
    --block_storage_class=${STG_CLASS_BLOCK} \
    --from_oci=true

    从另一个开放容器倡议注册表下载 CASE
    Portworx 存储
    cpd-cli manage deploy-knative-eventing \
    --release=${VERSION} \
    --storage_vendor=portworx \
    --from_oci=true \
    --oci_location=${OCI_REGISTRY_LOCATION}
    所有其他存储
    cpd-cli manage deploy-knative-eventing \
    --release=${VERSION} \
    --block_storage_class=${STG_CLASS_BLOCK} \
    --from_oci=true \
    --oci_location=${OCI_REGISTRY_LOCATION}

5.3.1 若您正在安装 IBM Software Hub 版本 5.3.1 ,请完成以下步骤以安装 Red Hat OpenShift Serverless Knative Eventing 软件:

  1. 下载该 CASEIBM Events 软件包:

    从 GitHub
    cpd-cli manage case-download \
    --release=${VERSION} \
    --components=ibm_events_operator

    摘自 IBM Cloud Pak 开放容器倡议
    cpd-cli manage case-download \
    --release=${VERSION} \
    --components=ibm_events_operator \
    --from_oci=true

    来自另一个开放容器倡议注册表
    cpd-cli manage case-download \
    --release=${VERSION} \
    --components=ibm_events_operator \
    --from_oci=true \
    --oci_location=${OCI_REGISTRY_LOCATION}

  2. Red Hat OpenShift Container Platform 集群管理员身份登录。
    ${OC_LOGIN}
    请记住: OC_LOGIN 是一个别名,代表 命令 oc login
  3. 生成所需的自定义资源定义 IBM Events Operator
    cpd-cli manage deploy-events-operator \
    --release=${VERSION} \
    --cluster_resources=true
  4. 应用所需的自定义资源定义 IBM Events Operator
    oc apply \
    -f cpd-cli-workspace/olm-utils-workspace/work/ibm-events-operator-crds.yaml \
    --server-side \
    --force-conflicts
  5. 登录 cpd-cli 到集群 Red Hat OpenShift Container Platform
    ${CPDM_OC_LOGIN}
    请记住: CPDM_OC_LOGIN 是一个别名,代表 命令 cpd-cli manage login-to-ocp
  6. 安装该软件 Red Hat OpenShift Serverless Knative Eventing
    注意: 默认情况下,该 deploy-knative-eventing 命令会将未使用的 Red Hat OpenShift Serverless Knative Eventing 副本缩放为 0(零)。 为防止此行为,请在命令末尾添加以下内容:
    --patch_redhat_crd=false

    您运行的命令取决于集群中的存储:

    Portworx 存储
    cpd-cli manage deploy-knative-eventing \
    --release=${VERSION} \
    --storage_vendor=portworx
    所有其他存储
    cpd-cli manage deploy-knative-eventing \
    --release=${VERSION} \
    --block_storage_class=${STG_CLASS_BLOCK}

下一步操作

现在您已安装 Red Hat OpenShift Serverless Knative EventingIBM Events,即可继续执行 《准备安装 IBM 实例》中的步骤: Software Hub