Apache camel-k examples

Clone this repo:

Branches

  1. dc8b4e2 Merge pull request #2 from nicolaferraro/katacoda by Nicola Ferraro · 7 weeks ago master
  2. 8bbf8e7 Add online version of the quickstart by Nicola Ferraro · 7 weeks ago
  3. dc2f922 Merge pull request #1 from nicolaferraro/first by Nicola Ferraro · 7 weeks ago
  4. d5ddfb9 Add references to the camel website by Nicola Ferraro · 7 weeks ago
  5. c7e0845 Fix typo by Nicola Ferraro · 7 weeks ago

Camel K Examples

This repository contains a collection of Camel K examples useful to understand how it works, common use cases and the idiomatic programming model.

You can find more information about Apache Camel and Apache Camel K on the official Camel website.

Before you begin

Open the examples in the IDE

To better work on all examples, make sure you have all them locally by checking out the git repository:

git clone git@github.com:apache/camel-k-examples.git

We suggest you to open the examples with VSCode because it provides useful extensions for working with Camel K files. If you've already installed it on your machine, after cloning the repository, you can open the examples on the IDE executing:

code camel-k-examples

We suggest you to install the following extensions for VSCode (The IDE should automatically prompt to ask you to install them):

  • Extension Pack for Apache Camel: provides auto-completion, error handling as well as integrated IDE tools to manage the lifecycle of Camel K integrations
  • Didact: Provides a better getting started experience when following readme files in the various examples

Have your Kubernetes cluster ready

All examples require that you are connected to a Kubernetes/OpenShift cluster, even a local instance such as Minikube or CRC. Some advanced examples may have additional requirements.

Ensure that you've followed the Camel K installation guide for your specific cluster before looking at the examples.

Install the CLI tools

All examples need at least the following CLI tools installed on your system:

Examples

Examples are contained in directories ordered by level of difficulty.

Most examples provide a readme.didact.md file instead of the standard readme file. For those, if you're using VSCode with Didact installed, you can right click on the readme.didact.md file and hit “Didact: Start Didact Tutorial from File”.

This is the current list of examples:

  • 01 Basic: Getting started with Camel K by learning the most important features that you should know before trying to develop more complex examples.