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.3. 部署 Camel K 转换集成
本教程介绍了如何在 OpenShift 上运行 Camel K Java 集成,该集成将 XML 等数据转换为 JSON,并将它存储在 PostgreSQL 等数据库中。
教程示例使用 CSV 文件查询 XML API,并使用收集的数据来构建有效的 GeoJSON 文件,该文件存储在 PostgreSQL 数据库中。
先决条件
- 请参阅 GitHub 中的教程阅读 主题 :https://github.com/openshift-integration/camel-k-example-transformations/tree/1.6.x。
- 您必须具有集群管理员访问 OpenShift 集群才能安装 Camel K。请参阅 安装 Camel K。
- 您必须按照教程的 readme 中的说明,通过 Dev4Ddevs.com 安装 PostgreSQL Operator,这在 OpenShift 集群上是必需的
- Visual Studio (VS) Code 是可选的,但推荐提供最佳的开发人员体验。请参阅设置您的 Camel K 开发环境。
流程
克隆教程 Git 存储库:
git clone git@github.com:openshift-integration/camel-k-example-transformations.git
$ git clone git@github.com:openshift-integration/camel-k-example-transformations.gitCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
在 VS Code 中,选择 File
Open Folder camel-k-example-transformations。 -
在 VS Code 导航树中,单击
readme.md文件。这会在 VS Code 中打开一个新标签页,以显示教程说明。 按照教程说明进行操作。
或者,如果您没有安装 VS Code,您可以手动输入 部署 Camel K 转换集成的命令。