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 章 Camel K quick start developer tutorials
Red Hat Integration - Camel K 根据 https://github.com/openshift-integration 提供的集成用例提供快速启动开发人员指南。本章详细介绍了如何设置和部署以下教程:
5.1. 部署基本 Camel K Java 集成
本教程介绍了如何在 OpenShift 上的云中运行简单的 Java 集成,将配置和路由应用到集成,并运行作为 Kubernetes CronJob 的集成。
先决条件
- 请参阅 GitHub 中的教程 readme。
-
您必须已安装了 Camel K operator 和
kamel
CLI。请参阅安装 Camel K。 - 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-basic.git
$ git clone git@github.com:openshift-integration/camel-k-example-basic.git
-
在 VS Code 中,选择 File
Open Folder camel-k-example-basic。 -
在 VS Code 导航树中,单击
readme.md
文件。这会在 VS Code 中打开一个新标签页,以显示教程说明。 按照教程说明操作。
或者,如果您没有安装 VS Code,您可以手动输入 部署基本 Camel K Java 集成的命令。