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.5. 部署基于 Camel K Serverless API 的集成
本教程演示了使用带有 Knative Serving 的 Camel K 和 OpenShift Serverless 进行基于 API 的集成,以及管理 OpenShift 中使用 3scale API Management 的 API。
教程介绍了如何配置基于 Amazon S3 的存储,设计 OpenAPI 定义,并运行调用演示 API 端点的集成。
先决条件
- 请参阅 GitHub 中的教程 readme。
您必须具有 OpenShift 集群的集群管理员访问权限才能安装 Camel K 和 OpenShift Serverless:
- 您还可以在 OpenShift 系统上安装可选的 Red Hat Integration - 3scale Operator 来管理 API。请参阅使用 Operator 部署 3scale。
- Visual Studio (VS) Code 是可选的,但建议获得最佳开发人员体验。请参阅 设置 Camel K 开发环境。
流程
克隆教程 Git 存储库。
$ git clone git@github.com:openshift-integration/camel-k-example-api.git
-
在 VS Code 中,选择 File
Open Folder camel-k-example-api。 -
在 VS Code 导航树中,单击
readme.md
文件。这会在 VS Code 中打开一个新标签页,以显示教程说明。 按照教程说明操作。
或者,如果您没有安装 VS Code,您可以手动输入 部署 Camel K API 集成的命令。