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.2. 部署 Camel K Serverless 与 Knative 集成
本教程介绍了如何在事件驱动的架构中部署 Camel K 与 OpenShift Serverless 集成。本教程使用 Knative Eventing 代理在 Bitcoin 交易演示中使用事件发布订阅模式进行通信。
本教程还介绍了如何使用 Camel K 集成连接到使用多个外部系统的 Knative 事件网格。Camel K 集成还根据需要使用 Knative Serving 来自动扩展和缩减到零。
先决条件
- 请参阅 GitHub 中的教程 readme。
您必须具有 OpenShift 集群的集群管理员访问权限才能安装 Camel K 和 OpenShift Serverless:
- Visual Studio (VS) Code 是可选的,但建议获得最佳开发人员体验。请参阅 设置 Camel K 开发环境。
流程
克隆教程 Git 存储库:
$ git clone git@github.com:openshift-integration/camel-k-example-knative.git
-
在 VS Code 中,选择 File
Open Folder camel-k-example-knative。 -
在 VS Code 导航树中,单击
readme.md
文件。这会在 VS Code 中打开一个新标签页,以显示教程说明。 按照教程说明操作。
如果您没有安装 VS Code,您可以手动输入 部署 Camel K Knative 集成的命令。