Skip to main content
Redhat Developers  Logo
  • Products

    Featured

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat OpenShift AI
      Red Hat OpenShift AI
    • Red Hat Enterprise Linux AI
      Linux icon inside of a brain
    • Image mode for Red Hat Enterprise Linux
      RHEL image mode
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • Red Hat Developer Hub
      Developer Hub
    • View All Red Hat Products
    • Linux

      • Red Hat Enterprise Linux
      • Image mode for Red Hat Enterprise Linux
      • Red Hat Universal Base Images (UBI)
    • Java runtimes & frameworks

      • JBoss Enterprise Application Platform
      • Red Hat build of OpenJDK
    • Kubernetes

      • Red Hat OpenShift
      • Microsoft Azure Red Hat OpenShift
      • Red Hat OpenShift Virtualization
      • Red Hat OpenShift Lightspeed
    • Integration & App Connectivity

      • Red Hat Build of Apache Camel
      • Red Hat Service Interconnect
      • Red Hat Connectivity Link
    • AI/ML

      • Red Hat OpenShift AI
      • Red Hat Enterprise Linux AI
    • Automation

      • Red Hat Ansible Automation Platform
      • Red Hat Ansible Lightspeed
    • Developer tools

      • Red Hat Trusted Software Supply Chain
      • Podman Desktop
      • Red Hat OpenShift Dev Spaces
    • Developer Sandbox

      Developer Sandbox
      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Secure Development & Architectures

      • Security
      • Secure coding
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
      • View All Technologies
    • Start exploring in the Developer Sandbox for free

      sandbox graphic
      Try Red Hat's products and technologies without setup or configuration.
    • Try at no cost
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • Java
      Java icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • API Catalog
    • Product Documentation
    • Legacy Documentation
    • Red Hat Learning

      Learning image
      Boost your technical skills to expert-level with the help of interactive lessons offered by various Red Hat Learning programs.
    • Explore Red Hat Learning
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

How Kamelets simplify Camel integrations on Kubernetes

November 1, 2022
Mohammadi Iram
Related topics:
Developer ToolsEvent-DrivenKubernetesMicroservices
Related products:
Red Hat OpenShift

Share:

    Modern applications, rarely coded from scratch, are formed by combining software components (known as subsystems) into a single system. This process is called integration. Typical subsystems include databases and web services. This article explains how Apache Camel and Kubernetes support easy integration of such services through Kamelets.

    How Kamelets make Camel integration easy

    Apache Camel is a popular open source integration framework based on known Enterprise Integration Patterns (EIPs). Camel is a complete, production-ready framework with a built-in set of patterns you can use in your integration flows. These patterns are based on design patterns and help connect different systems.

    Developers build many frameworks on Apache Camel. This article focuses on Camel K, but several other frameworks exist, such as Camel Kafka and Camel Quarkus.

    Camel K is a lightweight integration framework based on Apache Camel that runs natively on Kubernetes to create serverless and microservice architectures. Camel K allows you to write configuration instructions in the YAML format. The YAML file is known as a Kamelet. Any Kubernetes cluster can deploy a Kamelet as a resource.

    An example of a simple Kamelet follows:

    apiVersion: camel.apache.org/v1alpha1
    kind: KameletBinding
    metadata:
     name: integration
    spec:
     source:
      ref:
      apiVersion: camel.apache.org/v1alpha1
      name: aws-ddb-streams-source
      kind: Kamelet
    sink:
     ref:
      apiVersion: camel.apache.org/v1alpha1
      name: pulsar-sink
      kind: Kamelet

    Kamelets make it easy to exploit the power of Camel K without previous knowledge of that tool. Kamelets are integration snippets with connectors, in the form of sources and sinks, that allow you to connect to external systems using a simplified interface that hides the details of a connection.

    4 Advantages of Kamelets

    Developers are turning to Kamelets for several reasons:

    1. Kamelets simplify and streamline the integration of services into Kubernetes.
    2. You can employ Camel's powerful integration through a Kamelet without any prior knowledge of Camel.
    3. Kamelets offer connectors for event-driven applications. Events are becoming increasingly important, particularly with microservices. As event-driven applications spread, many organizations and developers have begun to use Apache Kafka and Knative as the backbone for connecting all of the systems' applications.
    4. Kamelets make it easy to reuse code for different use cases.

    3 Types of Kamelets

    Kamelets are classified into three types:

    1. Source: Consumes data from an external system into your platform.
    2. Sink: Sends data to an external system or performs an action on the data.
    3. Action: Performs an intermediate step: For example, an action can convert an event to a PDF file before it is saved to a sink.

    You can use a sink or a source to listen to or trigger several types of events, like a channel or a broker. For example, a Kafka channel can be directly connected to a JMS broker using Kamelets. In another example, the Aws-ddb-streams-source can take data from an Amazon DynamoDB database, and the pulsar-sink sink could then store this data elsewhere.

    Advanced features of Kamelets

    • KameletBindings provide a source and a sink as a pair.
    • You can store Kamelets in a catalog, similar to a GitHub repository. Kaoto is a catalog provided by my team. Kaoto is a free, open-source tool that provides a simple integration framework based on Apache Camel, making it easier to visualize your integrations and create Kamelets.

    Summary

    Kamelets advanced features make it easy to utilize Camel K. You can connect to external systems using a simplified interface that hides connection details. There are many advantages to using Kamelets for application integration. Learn more by reviewing the Kaoto catalog. Feel free to comment below. We welcome your feedback.

    Last updated: October 20, 2023

    Related Posts

    • Design event-driven integrations with Kamelets and Camel K

    • Tracking COVID-19 using Quarkus, AMQ Streams, and Camel K on OpenShift

    • Six reasons to love Camel K

    • Event-driven serverless applications with Camel K

    • Sending a telegram with Apache Camel K and Visual Studio Code

    Recent Posts

    • Meet the Red Hat Node.js team at PowerUP 2025

    • How to use pipelines for AI/ML automation at the edge

    • What's new in network observability 1.8

    • LLM Compressor: Optimize LLMs for low-latency deployments

    • How to set up NVIDIA NIM on Red Hat OpenShift AI

    What’s up next?

    Learn Camel K basics with us! We will teach you how to use a lightweight framework for writing integrations.

    Learn by doing
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Products

    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform

    Build

    • Developer Sandbox
    • Developer Tools
    • Interactive Tutorials
    • API Catalog

    Quicklinks

    • Learning Resources
    • E-books
    • Cheat Sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site Status Dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue

    OSZAR »