Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/astefanutti/camel-kcp
- Owner: astefanutti
- License: apache-2.0
- Created: 2022-08-17T15:48:39.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-03T16:06:02.000Z (over 1 year ago)
- Last Synced: 2023-08-05T00:06:06.881Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 1.36 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 <