Configure Integrations

Runtime properties associated to an integration can be configured using the --property flag when running the integration. If the property is a build time property (ie, certain Quarkus configuration), then, you can use --build-property instead.

The property value can be used inside Camel K integrations using the property placeholder mechanism.

The syntax for properties has the form {{my.property}}, for example:

property-route.yaml
- from:
    uri: "timer:props"
    steps:
      - setBody:
          simple: "{{my.message}}"
      - to: "log:info"

In order to give a value to the my.message property you can pass it using the command line:

kamel run --property my.message="Hello World" property-route.yaml

For more details and advanced use cases, see the runtime properties section.