Red Hat Camel K is no longer supported.
As of June 30, 2025, Red Hat build of Camel K has reached End of Life. The suggested replacements is Red Hat build of Apache Camel. For details about moving, see the Camel K to Camel Quarkus migration guide.5.4. 部署 Camel K Serverless 事件流集成
本教程演示了在 Knative Eventing 中使用 Camel K 和 OpenShift Serverless 进行事件驱动的架构。
本教程介绍了如何在带有 AMQ Broker 集群的 AMQ Streams 集群中安装 Camel K 和 Serverless,以及如何部署事件流项目来运行全局 hazard 警报演示应用程序。
先决条件
- 请参阅 GitHub 中的教程阅读 主题 :https://github.com/openshift-integration/camel-k-example-event-streaming/tree/1.6.x。
您必须具有集群管理员访问 OpenShift 集群才能安装 Camel K 和 OpenShift Serverless:
您必须按照教程阅读中的说明在 OpenShift 集群上安装额外所需的 Operator:
- AMQ Streams Operator
- AMQ Broker Operator
- Visual Studio (VS) Code 是可选的,但推荐提供最佳的开发人员体验。请参阅设置您的 Camel K 开发环境。
流程
克隆教程 Git 存储库:
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.gitCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
在 VS Code 中,选择 File
Open Folder camel-k-example-event-streaming。 -
在 VS Code 导航树中,单击
readme.md文件。这会在 VS Code 中打开一个新标签页,以显示教程说明。 按照教程说明进行操作。
或者,如果您没有安装 VS Code,您可以手动输入 部署 Camel K 事件流集成的命令。