Camel K allows us to run Camel integrations directly on a Kubernetes or OpenShift cluster. To use it, you need to be connected to a cloud environment or to a local cluster created for development purposes (ie, Minikube or Kind).
Installation via Kamel CLI
To start using Camel K you need the "kamel" CLI tool, that can be used to both configure the cluster and run integrations. Look into the release page for the latest version of the camel-k-client tool for your specific platform.
Download and uncompress the archive. It contains a small binary file named
kamel that you should put into your system path. For example, if you’re using Linux, you can put
Once you have put the
kamel CLI in the path, log into your cluster using the standard
oc (OpenShift) or
kubectl (Kubernetes) client tool and execute the following command to install Camel K:
$ kamel install --olm=false
This will configure the cluster with the Camel K custom resource definitions and install the operator on the current namespace with the default settings.
| Custom Resource Definitions (CRD) are cluster-wide objects and you need admin rights to install them. Fortunately, this operation can be done once per cluster. So, if the |
Installation via Kustomize
Camel K can be installed using Kustomize, providing an interface for configuring more advanced features.
# Clone the project repository $ https://github.com/apache/camel-k.git $ cd camel-k # You can use any release branch or skip this step to use it the last code on `main` $ git checkout release-a.b.x $ cd install $ kubectl apply -k setup-cluster $ kubectl apply -k setup $ kubectl apply -k operator $ kubectl apply -k platform
|you probably want to edit the configuration. Please, do any change right after cloning the repository.|
More information on the Kustomize Camel K installation procedure page.
Installation via Operator Hub
Camel K is also available in Operator Hub:
$ kubectl create -f https://operatorhub.io/install/camel-k.yaml
You will need to OLM framework to be properly installed in your cluster. More instructions on the Camel K Operator Hub page.
As an alternative, you can also use the
kamel CLI to perform the same installation:
$ kamel install --olm=true
|Some Kubernetes clusters such as Openshift (or CRC) may let you to perform the same operation from a GUI as well. Refer to the cluster instruction to learn how to perform such action.|
Installation via Helm Hub
Camel K is also available in Helm Hub:
$ helm repo add camel-k https://apache.github.io/camel-k/charts/ $ helm install my-camel-k camel-k/camel-k
More instructions on the Camel K Helm page.
Test your installation
Once you’ve completed any of the above installation procedure, you’ll be ready to run some integrations.
Special clusters requirements
Camel K installation is usually straightforward, but for certain cluster types you need to apply specific configuration settings before installing it. You need customized instructions for the following cluster types:
|Minishift is no longer supported since Camel K 1.5.0. You can use CRC for a local OpenShift cluster.|
Camel K installation can be configured with certain special settings available for experienced users. You can manage resources such as limiting memory and CPU, provide a policy for
Pod scheduling and
Toleration. Please have a look at Camel K fine tuning to learn more about advanced configuration.