MotaOcimar commented on issue #92:
URL: 
https://github.com/apache/camel-k-examples/issues/92#issuecomment-1831846683

   [Resource loading remains for ConfigMaps and 
Secrets](https://camel.apache.org/camel-k/2.1.x/configuration/runtime-resources.html#runtime-resource-configmap).
   
   To do something similar to what `kamel run --config|--resource file:` did, 
you can create a ConfigMap. For example:
   
   The result obtained with the following command in Camel K 1.x:
   ```sh
   kamel run MyRoute.java --resource file:./models/responde.json@/work/models
   ```
   
   Can now be obtained with the following in Camel 2.x:
   
   ```sh
   kubectl create configmap models --from-file=./models/responde.json
   kamel run MyRoute.java --resource configmap:models@/work/models
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to