此内容没有您所选择的语言版本。
Chapter 9. Camel K command reference
This chapter provides reference details on the Camel K command line interface (CLI), and provides examples of using the kamel
command. This chapter also provides reference details on Camel K modeline options that you can specify in a Camel K integration source file, which are executed at runtime.
This chapter includes the following sections:
9.1. Camel K command line
The Camel K CLI provides the kamel
command as the main entry point for running Camel K integrations on OpenShift. This section provides details on the most commonly used kamel
commands.
Name | Description | Example |
---|---|---|
|
Get the full list of available commands. You can enter |
|
| Initialize an empty Camel K file implemented in Java, XML, or YAML. |
|
| Run an integration on OpenShift. |
|
| Debug a remote integration using a local debugger. |
|
| Get integrations deployed on OpenShift. |
|
|
Get detailed information on a Camel K resource. This includes an |
|
| Print the logs of a running integration. |
|
| Delete an integration deployed on OpenShift. |
|
Additional resources
9.2. Camel K modeline options
You can use the Camel K modeline to enter configuration options in a Camel K integration source file, which are executed at runtime, for example, using kamel run MyIntegration.java
. For more details, see Section 3.7, “Running Camel K integrations using modeline”.
This section provides reference details about the most commonly used modeline options.
Option | Description |
---|---|
|
Add an external library to be included in the integration. For example, for Maven, use |
|
Set an environment variable in the integration container. For example, |
|
Add a label for the integration. For example, |
|
Add an integration name. For example, |
|
Add an OpenAPI v2 specification. For example, |
|
Set the Camel K trait profile used for deployment. For example, |
|
Add a integration property. For example, |
|
Bind a property file to the integration. For example, |
|
Add an external resource. For example, |
|
Configure a Camel K feature or core capability in a trait. For example, |