Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/astefanutti/camel-kcp

Apache Camel on kcp
https://github.com/astefanutti/camel-kcp

Last synced: 5 days ago
JSON representation

Apache Camel on kcp

Awesome Lists containing this project

README

        

# camel-kcp

[Camel K](https://github.com/apache/camel-k) on [kcp](https://github.com/kcp-dev/kcp).

# Testing

## Prerequisites

* [Make](https://www.gnu.org/software/make)
* [Go](https://go.dev/doc/install) (v1.19 recommended)
* [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
* [Docker](https://docs.docker.com/get-docker)
* [KinD](https://kind.sigs.k8s.io/docs/user/quick-start/#installation)
* [kubectl](https://kubernetes.io/docs/tasks/tools/#kubectl)

## Setup

You can run the following command to set up kcp and KinD clusters:

```console
$ make local-setup
```

## Run

### Local

Once kcp setup, you can run camel-kcp locally, by running the following command in another terminal:

```console
$ KUBECONFIG=.kcp/admin.kubeconfig ./bin/camel-kcp --config=./config/deploy/local/config.yaml
```

### Deploy

Another alternative is to deploy camel-kcp in kcp itself, by running the following command in another terminal:

```console
$ make local-deploy
```

## Test

Once camel-kcp is running, you can exercise it using one of the methods below.

It is recommended to use the version of the kcp plugin that's been built during [setup](#Setup), which can be achieved by running:

```console
$ export PATH="$(pwd)/bin:$PATH"
```

And to switch to using the `user` context and workspace, by running:

```console
$ export KUBECONFIG=.kcp/admin.kubeconfig
$ kubectl config use-context user
$ kubectl kcp ws
```

### Manual

You can create a workspace, with Camel K ready to use, by running:

```console
$ kubectl kcp ws create demo --type camel-k --enter
```

Finally, create an integration, e.g. by running:

```console
$ cat <