diff --git a/docs/versioned/bookstore/page-7/slack-sink-learning-knative-eventing-and-apache-camel-K-integration.md b/docs/versioned/bookstore/page-7/slack-sink-learning-knative-eventing-and-apache-camel-K-integration.md index 3052eed3c9c..b404b4585da 100644 --- a/docs/versioned/bookstore/page-7/slack-sink-learning-knative-eventing-and-apache-camel-K-integration.md +++ b/docs/versioned/bookstore/page-7/slack-sink-learning-knative-eventing-and-apache-camel-K-integration.md @@ -21,44 +21,81 @@ When a CloudEvent with the type `moderated-comment` and with `ce-bad-word-filter ## **Install prerequisites** -### **Prerequisite 1: Install Apache Camel CLI** +### **Prerequisite 1: Install Apache Camel-Kamelets** -![image](images/image16.png) - -Install the Apache Camel K CLI (`kamel`) on your local machine. You can find the installation instructions [here](https://camel.apache.org/camel-k/2.2.x/cli/cli.html){:target="_blank"}. +![image](images/image13.png) -???+ bug "Troubleshooting" - - If after installation you run `kamel version` and you get an error message, you may need to add the `kamel` binary to your system's PATH. You can do this by moving the `kamel` binary to a directory that is already in your PATH, or by adding the directory where `kamel` is located to your PATH. +Install Apache Camel K operator on your cluster using any of the methods listed in [the official installation docs](https://camel.apache.org/camel-k/2.8.x/installation/installation.html). We will use the installation via Kustomize: - ```sh - $ export PATH=$PATH: - ``` +```sh +kubectl create ns camel-k && \ +kubectl apply -k github.com/apache/camel-k/install/overlays/kubernetes/descoped?ref=v2.8.0 --server-side +``` -### **Prerequisite 2: Install Apache Camel-Kamelets** +Now you need to setup an `IntegrationPlatform` with a container registry. You can read more about it in [the official installation docs](https://camel.apache.org/camel-k/2.8.x/installation/installation.html#integration-platform). For all our needs we only need to create the `IntegrationPlatform` CR with a container registry entry. For example let's say we're using a Kind cluster with a local registry named `kind-registry` on port `5000`. Then your `IntegrationPlatform` CR will look like the following: -![image](images/image13.png) +```yaml +apiVersion: camel.apache.org/v1 +kind: IntegrationPlatform +metadata: + name: camel-k + namespace: camel-k # Make sure this is the namespace where your operator is running +spec: + build: + registry: + address: kind-registry:5000 + insecure: true +``` -Next, install Apache Camel K on your cluster using the Apache Camel K CLI: +Install it with one command: ```sh -$ kamel install --registry docker.io --organization --registry-auth-username --registry-auth-password +cat <