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.3. 部署 Camel K 转换集成
本教程演示了如何在 OpenShift 上运行 Camel K Java 集成,它将 XML 等数据转换为 JSON,并将其存储在 PostgreSQL 等数据库中。
教程示例使用 CSV 文件查询 XML API,并使用收集的数据来构建有效的 GeoJSON 文件,该文件存储在 PostgreSQL 数据库中。
先决条件
- 请参阅 GitHub 中的教程 readme。
- 您必须具有 OpenShift 集群的集群管理员访问权限才能安装 Camel K。请参阅 安装 Camel K。
- 您必须按照教程 readme 中的说明来安装 Crunchy Postgres for Kubernetes,这在 OpenShift 集群中是必需的。
- 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-transformations.git
$ git clone git@github.com:openshift-integration/camel-k-example-transformations.git
-
在 VS Code 中,选择 File
Open Folder camel-k-example-transformations。 -
在 VS Code 导航树中,单击
readme.md
文件。这会在 VS Code 中打开一个新标签页,以显示教程说明。 按照教程说明操作。
如果您没有安装 VS Code,您可以手动输入 部署 Camel K 转换集成的命令。