Red Hat Camel K is deprecated
Red Hat Camel K is deprecated and the End of Life date for this product is June 30, 2025. For help migrating to the current go-to solution, Red Hat build of Apache Camel, see the Migration Guide.5.4. 部署 Camel K Serverless 事件流集成
本教程演示了在 Knative Eventing 中使用 Camel K 和 OpenShift Serverless 进行事件驱动的架构。
教程介绍了如何在带有 AMQ Broker 集群的 AMQ Streams 集群中安装 Camel K 和 Serverless,以及如何部署 event streaming 项目来运行全局 hazard 警报演示应用程序。
先决条件
- 请参阅 GitHub 中的教程 readme。
您必须具有 OpenShift 集群的集群管理员访问权限才能安装 Camel K 和 OpenShift Serverless:
您必须遵循教程 readme 中的说明,才能在 OpenShift 集群上安装额外的所需 Operator:
- AMQ Streams Operator
- AMQ Broker Operator
- Visual Studio (VS) Code 是可选的,但建议获得最佳开发人员体验。请参阅 设置 Camel K 开发环境。
流程
克隆教程 Git 存储库。
Copy to Clipboard Copied! Toggle word wrap Toggle overflow git clone git@github.com:openshift-integration/camel-k-example-event-streaming.git
$ git clone git@github.com:openshift-integration/camel-k-example-event-streaming.git
-
在 VS Code 中,选择 File
Open Folder camel-k-example-event-streaming。 -
在 VS Code 导航树中,单击
readme.md
文件。这会在 VS Code 中打开一个新标签页,以显示教程说明。 按照教程说明操作。
或者,如果您没有安装 VS Code,您可以手动输入 部署 Camel K 事件流集成的命令。