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:

props.groovy
from('timer:props?period=1000')
    .log('{{my.message}}')

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" props.groovy

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