- OpenShift CLI (oc) is installed locally
- Camel-K CLI (kamel) is installed locally
-
Update any configurations necessary in the applications.properties file (probably just the topics you want to consume from)
-
Create a ConfigMap on OpenShift, which contains the integrations configuration
oc create configmap kafka-to-log-integration.props --from-file=application.properties
-
Deploy the integration
kamel run KafkaToLogIntegration.java --config configmap:kafka-to-log-integration.props
-
Check the state of the deployment
kamel get
Note: The CamelK operator might take some time to build the integration. Wait for it to no longer say "Building Kit" - it needs to say "Running".
-
Inspect the logs of the integration to see incoming messages
kamel log kafka-to-log-integration