Deployment into cluster using Camel JBang Kubernetes plugin
March 17, 2025 ยท View on GitHub
Manage deployment lifecycle
There are extensions which allows you to manage your deployments (which are part of an Extension Pack for Apache Camel):
or you can use a power of Camel CLI described below.
Follow logs
You can use Camel CLI to obtain logs of current running integration. In terminal window execute:
jbang camel@apache/camel kubernetes logs --name=<name>
Remove deployment
To remove current integration, you can use also Camel CLI. In this case the command is:
jbang camel@apache/camel kubernetes delete --name=<name>
Version limitations
With Camel 4.8 and 4.9, the deployment in development mode is not working correctly. When using these versions, please remove the --dev from the list in settings: Extensions > Debug Adapter for Apache Camel -> Camel > Debug Adapter: Kubernetes Run Parameters.
Troubleshooting
For some releases of Camel (4.8.1 - 4.10) there could be problem when deleting deployments using Camel Jbang CLI, for details you can see reported upstream issue CAMEL-21388.
In that case please try with previous or newer version which was working better.
jbang -Dcamel.jbang.version=4.8.0 camel@apache/camel kubernetes delete --name=<name>
How to deploy into local Kubernetes cluster
By default, the deployment aims OpenShift cluster. In case you need to deploy into Kubernetes, there is a small modification needed:
- open Settings UI in VS Code
- Linux/Windows -
File > Preferences > Settings - macOS -
Code > Settings... > Settings
- Linux/Windows -
- navigate to
Extensions > Debug Adapter for Apache Camel - modify setting
Camel > Debug Adapter: Kubernetes Run Parametersas you can see on picture below

The picture describes how to deploy to local Kubernetes cluster using Minikube. You can use eg. also Kind. In that case, just change to --cluster-type=kind.
For more information see Camel Kubernetes plugin official documentation.