christophd commented on issue #4129: URL: https://github.com/apache/camel-k/issues/4129#issuecomment-1466349328
The KameletBinding is not able to run because the referenced Kamelet source(`example`) does not exist. You need to reference a Kamelet that is available from one of the Kamelet catalogs (e.g. https://camel.apache.org/camel-kamelets/3.20.x/). Also the binding uses a Knative InMemoryChannel `example` as a sink so you would have to make sure to create this channel before running the binding. Here is a KameletBinding I just verified on OCP 4.12 with Camel K 1.12.0 ```yaml apiVersion: camel.apache.org/v1alpha1 kind: KameletBinding metadata: labels: app: camel-k name: timer-to-log spec: source: ref: apiVersion: camel.apache.org/v1alpha1 name: timer-source kind: Kamelet properties: message: Hello world sink: ref: apiVersion: camel.apache.org/v1alpha1 name: log-sink kind: Kamelet ``` The binding log output: ``` 2023-03-13 15:09:30,848 INFO [org.apa.cam.k.Runtime] (main) Apache Camel K Runtime 1.17.0 2023-03-13 15:09:30,874 INFO [org.apa.cam.qua.cor.CamelBootstrapRecorder] (main) Bootstrap runtime: org.apache.camel.quarkus.main.CamelMainRuntime 2023-03-13 15:09:30,877 INFO [org.apa.cam.mai.MainSupport] (main) Apache Camel (Main) 3.20.1 is starting 2023-03-13 15:09:31,034 INFO [org.apa.cam.k.lis.SourcesConfigurer] (main) Loading routes from: SourceDefinition{name='camel-k-embedded-flow', language='yaml', type='source', location='file:/etc/camel/sources/camel-k-embedded-flow.yaml', } 2023-03-13 15:09:31,130 INFO [org.apa.cam.k.lis.SourcesConfigurer] (main) Loading routes from: SourceDefinition{name='log-sink', language='yaml', type='source', location='file:/etc/camel/sources/log-sink.yaml', } 2023-03-13 15:09:31,134 INFO [org.apa.cam.k.lis.SourcesConfigurer] (main) Loading routes from: SourceDefinition{name='timer-source', language='yaml', type='source', location='file:/etc/camel/sources/timer-source.yaml', } 2023-03-13 15:09:31,643 INFO [org.apa.cam.imp.eng.AbstractCamelContext] (main) Apache Camel 3.20.1 (camel-1) is starting 2023-03-13 15:09:31,660 INFO [org.apa.cam.imp.eng.AbstractCamelContext] (main) Routes startup (started:3) 2023-03-13 15:09:31,661 INFO [org.apa.cam.imp.eng.AbstractCamelContext] (main) Started binding (kamelet://timer-source/source) 2023-03-13 15:09:31,661 INFO [org.apa.cam.imp.eng.AbstractCamelContext] (main) Started source (timer://tick) 2023-03-13 15:09:31,661 INFO [org.apa.cam.imp.eng.AbstractCamelContext] (main) Started sink (kamelet://source) 2023-03-13 15:09:31,661 INFO [org.apa.cam.imp.eng.AbstractCamelContext] (main) Apache Camel 3.20.1 (camel-1) started in 221ms (build:0ms init:203ms start:18ms) 2023-03-13 15:09:31,666 INFO [io.quarkus] (main) camel-k-integration 1.12.0 on JVM (powered by Quarkus 2.16.0.Final) started in 4.319s. 2023-03-13 15:09:31,667 INFO [io.quarkus] (main) Profile prod activated. 2023-03-13 15:09:31,667 INFO [io.quarkus] (main) Installed features: [camel-bean, camel-core, camel-k-core, camel-k-runtime, camel-kamelet, camel-kubernetes, camel-log, camel-timer, camel-yaml-dsl, cdi, kubernetes-client, security] 2023-03-13 15:09:32,671 INFO [log-sink] (Camel (camel-1) thread #1 - timer://tick) Exchange[ExchangePattern: InOnly, BodyType: String, Body: Hello world] 2023-03-13 15:09:33,659 INFO [log-sink] (Camel (camel-1) thread #1 - timer://tick) Exchange[ExchangePattern: InOnly, BodyType: String, Body: Hello world] 2023-03-13 15:09:34,659 INFO [log-sink] (Camel (camel-1) thread #1 - timer://tick) Exchange[ExchangePattern: InOnly, BodyType: String, Body: Hello world] 2023-03-13 15:09:35,659 INFO [log-sink] (Camel (camel-1) thread #1 - timer://tick) Exchange[ExchangePattern: InOnly, BodyType: String, Body: Hello world] 2023-03-13 15:09:36,659 INFO [log-sink] (Camel (camel-1) thread #1 - timer://tick) Exchange[ExchangePattern: InOnly, BodyType: String, Body: Hello world] 2023-03-13 15:09:37,660 INFO [log-sink] (Camel (camel-1) thread #1 - timer://tick) Exchange[ExchangePattern: InOnly, BodyType: String, Body: Hello world] 2023-03-13 15:09:38,660 INFO [log-sink] (Camel (camel-1) thread #1 - timer://tick) Exchange[ExchangePattern: InOnly, BodyType: String, Body: Hello world] 2023-03-13 15:09:39,660 INFO [log-sink] (Camel (camel-1) thread #1 - timer://tick) Exchange[ExchangePattern: InOnly, BodyType: String, Body: Hello world] ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org