How to create yaml manifests from apache camel-k?

427 views Asked by At

I am playing around with camel-k to build some integrations. The dev mode experience is really great. My command is kamel run --config file:demo-template.json demo-driver.groovy --dev

But when i am finished i would like not just remove the --dev switch. I would like to have some yaml files to check in into git and the deploy them with ArgoCD or Flux.

Is there something like kamel build ... --dry-run=client -o yaml or similar?

1

There are 1 answers

1
VANAN On BEST ANSWER

You can use kamel run ... -o yaml, for example:

kamel run --config file:demo-template.json demo-driver.groovy -o yaml > integration.yaml

Despite the run name, when specifying the output, it will not actually run the integration