我正在尝试部署一个简单的 camel-k 配置并使其与 Amazon EKS 一起使用。我做了什么:
- 基于 Amazon EKS 创建了一个新的 Kubernetes 集群 在 此处输入图像描述
- 使用命令安装 Camel-K
kamel install --registry docker.io --organization user_id --registry-secret pass
在此处输入图像描述 在此 之后,我有一个骆驼-k 活动吊舱 在此处输入图像描述 3. 尝试运行以下示例集成
//骆驼-k:语言=java 导入 org.apache.camel.builder.RouteBuilder; 公共类 Demo 扩展 RouteBuilder { @Override 公共无效配置()抛出异常{ // 在这里写下你的路线,例如: 从(“计时器:java?期间= 1000”) .routeId("java") .setBody() .simple("Hello Camel K 来自 ${routeId}") .to("日志:信息"); } }
使用命令
kamel 运行 Demo.java --dev
在此命令之后我有下一个输出:
进展:在初始化阶段集成“演示” 进展:在阶段构建套件中集成“演示” 集成演示的条件“IntegrationPlatformAvailable”为“True”:default/camel-k “初始化”阶段的集成演示 “Building Kit”阶段的集成演示 集成演示的条件“IntegrationKitAvailable”为“False”:创建新的集成套件 集成演示子资源套件-c23tllgnm1jafvoms1t0(集成套件)将阶段更改为“构建已提交” 集成演示子资源工具包-c23tllgnm1jafvoms1t0(构建)将阶段更改为“调度” 集成演示子资源工具包-c23tllgnm1jafvoms1t0(构建)将阶段更改为“待定” 集成演示子资源工具包-c23tllgnm1jafvoms1t0(构建)将阶段更改为“运行” 集成演示子资源套件-c23tllgnm1jafvoms1t0(集成套件)将阶段更改为“构建运行” 集成演示子资源工具包-c23tllgnm1jafvoms1t0(构建)将阶段更改为“失败” 集成演示子资源工具包-c23tllgnm1jafvoms1t0(构建)将阶段更改为“初始化”(5 个中的第 1 个恢复) 集成演示子资源工具包-c23tllgnm1jafvoms1t0(构建)将阶段更改为“调度”(5 个中的第 1 个恢复) 集成演示子资源工具包-c23tllgnm1jafvoms1t0(构建)将阶段更改为“待定”(恢复 1 of 5) 集成演示子资源工具包-c23tllgnm1jafvoms1t0(构建)将阶段更改为“运行”(5 个中的第 1 个恢复) 集成演示子资源工具包-c23tllgnm1jafvoms1t0(构建)将阶段更改为“失败”(恢复 1 of 5) (结合类似事件):Integration demo subresource kit-c23tllgnm1jafvoms1t0 (Build) changed phase to "Initialization" (recovery 2 of 5) (结合类似事件):Integration demo subresource kit-c23tllgnm1jafvoms1t0 (Build) changed phase to "Scheduling" (recovery 2 of 5) (结合类似事件):Integration demo subresource kit-c23tllgnm1jafvoms1t0 (Build) changed phase to "Pending" (recovery 2 of 5) (结合类似事件):Integration demo subresource kit-c23tllgnm1jafvoms1t0 (Build) changed phase to "Running" (recovery 2 of 5) (结合类似事件):Integration demo subresource kit-c23tllgnm1jafvoms1t0 (Build) changed phase to "Failed" (recovery 2 of 5) (结合类似事件):Integration demo subresource kit-c23tllgnm1jafvoms1t0 (Build) changed phase to "Initialization" (recovery 3 of 5) (结合类似事件):Integration demo subresource kit-c23tllgnm1jafvoms1t0 (Build) changed phase to "Scheduling" (recovery 3 of 5) (结合类似事件):Integration demo subresource kit-c23tllgnm1jafvoms1t0 (Build) changed phase to "Pending" (recovery 3 of 5) (结合类似事件):Integration demo subresource kit-c23tllgnm1jafvoms1t0 (Build) changed phase to "Running" (recovery 3 of 5) (结合类似事件):Integration demo subresource kit-c23tllgnm1jafvoms1t0 (Build) changed phase to "Failed" (recovery 3 of 5) (结合类似事件):Integration demo subresource kit-c23tllgnm1jafvoms1t0 (Build) changed phase to "Initialization" (recovery 4 of 5) (结合类似事件):Integration demo subresource kit-c23tllgnm1jafvoms1t0 (Build) changed phase to "Scheduling" (recovery 4 of 5) (结合类似事件):Integration demo subresource kit-c23tllgnm1jafvoms1t0 (Build) changed phase to "Pending" (recovery 4 of 5) (结合类似事件):Integration demo subresource kit-c23tllgnm1jafvoms1t0 (Build) changed phase to "Running" (recovery 4 of 5) (结合类似事件):Integration demo subresource kit-c23tllgnm1jafvoms1t0 (Build) changed phase to "Failed" (recovery 4 of 5) (结合类似事件):Integration demo subresource kit-c23tllgnm1jafvoms1t0 (Build) changed phase to "Initialization" (recovery 5 of 5) (结合类似事件):Integration demo subresource kit-c23tllgnm1jafvoms1t0 (Build) changed phase to "Scheduling" (recovery 5 of 5) (结合类似事件):Integration demo subresource kit-c23tllgnm1jafvoms1t0 (Build) changed phase to "Failed" (recovery 5 of 5) 集成演示子资源套件-c23tllgnm1jafvoms1t0(集成套件)将阶段更改为“错误” 进展:在阶段错误中集成“演示” 错误:集成“演示”部署失败
我得到了camel pod (camel-k-operator-id) 日志,但我在日志中找不到任何可以帮助我理解这个错误的真正问题的信息。有人可以帮助我如何获取发生错误的详细信息吗?
主要问题是可以将 Camel-K 与 Amazon Elastic Kubernetes Service 一起使用吗?我还没有在官方文档中找到任何信息。