このコンテンツは選択した言語では利用できません。
Chapter 5. Managing and monitoring Camel K integrations
This chapter explains available options for managing and monitoring Red Hat Integration - Camel K integrations at runtime:
5.1. Managing Camel K integrations リンクのコピーリンクがクリップボードにコピーされました!
Camel K provides different options for managing Camel K integrations on your OpenShift cluster on the command line. This section shows examples of using the following commands:
-
kamel get
-
kamel describe
-
kamel log
-
kamel delete
Prerequisites
- Section 2.4, “Setting up your Camel K development environment”
- You must already have a Camel integration written in Java, XML, or YAML DSL
Procedure
Ensure that the Camel K Operator is running on your OpenShift cluster, for example:
oc get pod
$ oc get pod NAME READY STATUS RESTARTS AGE camel-k-operator-86b8d94b4-pk7d6 1/1 Running 0 6m28s
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enter the
kamel run
command to run your integration in the cloud on OpenShift. For example:kamel run hello.camelk.yaml
$ kamel run hello.camelk.yaml integration "hello" created
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enter the
kamel get
command to check the status of the integration:kamel get
$ kamel get NAME PHASE KIT hello Building Kit kit-bqatqib5t4kse5vukt40
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enter the
kamel describe
command print detailed information about the integration:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enter the
kamel log
command to print the log tostdout
:Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Press
Ctrl-C
to terminate logging in the terminal. Enter the
kamel delete
to delete the integration deployed on OpenShift:kamel delete hello
$ kamel delete hello Integration hello deleted
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Additional resources
- For more details on logging, see Section 5.2, “Setting Camel K integration logging levels”
- For faster deployment turnaround times, see Section 2.9, “Running Camel K integrations in development mode”
- For examples of using development tooling to manage integrations, see VS Code Tooling for Apache Camel K by Red Hat
5.2. Setting Camel K integration logging levels リンクのコピーリンクがクリップボードにコピーされました!
Camel K uses Apache Log4j 2 as the logging framework for integrations. You can configure the logging levels of various loggers on the command line at runtime by specifying the logging.level
prefix as an integration property. For example:
--property logging.level.org.apache.camel=DEBUG
--property logging.level.org.apache.camel=DEBUG
Procedure
Enter the
kamel run
command and specify the logging level using the--property
option. For example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Press
Ctrl-C
to terminate logging in the terminal.
Additional resources
- For more details on the logging framework, see the Apache Log4j 2 documentation
- For examples of using development tooling to view logging, see VS Code Tooling for Apache Camel K by Red Hat