Giter VIP home page Giter VIP logo

camel-k-examples's Introduction

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 [email protected]:apache/camel-k-examples.git

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:

Generic Examples

In Generic Examples we are providing multiple generic examples folder.

Kamelets

In Kamelets we have a set of examples based on Kamelets.

camel-k-examples's People

Contributors

apupier avatar bvahdat avatar davsclaus avatar denisbr avatar gansheer avatar igarashitm avatar ilan-pinto avatar johnpoth avatar kuthumipepple avatar lburgazzoli avatar lfabriko avatar luigidemasi avatar mmelko avatar nicolaferraro avatar orpiske avatar oscerd avatar squakez avatar tdiesler avatar tstuber avatar zhfeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

camel-k-examples's Issues

Provide example usage for trait profiles

We have multiple routes that we are deploying to varying platforms with different configuration when it comes to Knative settings, prometheus labels, and a bunch of other stuff. I think utilizing trait profiles would help me with my use case a lot. However, I couldn't find any examples. Would appreciate if someone can provide a short sample or point me in the right direction. Thanks!

chuck.xml depends on kamelet:chuck-norris-source

the chuck.xml depends on kamelet:chuck-norris-source, but this does not exist in the examples and is unavailable by default.

generic-examples/kamelets/chuck-norris/chuck.xml

chuck-noris-soure.kamelet..yaml

apiVersion: camel.apache.org/v1alpha1
kind: Kamelet
metadata:
  name: chuck-norris-source
  annotations:
    camel.apache.org/kamelet.support.level: "Stable"
    camel.apache.org/catalog.version: "main-SNAPSHOT"
    camel.apache.org/kamelet.icon: data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgNTEyIDUxMiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTEyIDUxMjsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHJlY3QgeD0iMTY1LjQ3IiB5PSIyNDMuOCIgc3R5bGU9ImZpbGw6I0YwRjBGQTsiIHdpZHRoPSIxMjkuNjUiIGhlaWdodD0iNDEuMiIvPg0KPGc+DQoJPHJlY3QgeD0iNDAzLjEyIiB5PSIxOTkuNjciIHN0eWxlPSJmaWxsOiNGRkI0ODc7IiB3aWR0aD0iMzIiIGhlaWdodD0iNDIiLz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AsMjQuMjgzLDcuMDk1LDMwLjAxOSwxOC41MTdsMjIuMDk0LDQzLjk5Nw0KCUMzMzQuNzgsMTg5LjMsMzQ1LjY0MywxOTYsMzU3LjcxMiwxOTZoMzUuNDExdjMuNjY3djQyTDM5My4xMjMsMjQ2LjEyN0wzOTMuMTIzLDI0Ni4xMjd6IE00MTMuMTIzLDIwOS42NjdoMTJ2MjJoLTEyVjIwOS42Njd6DQoJIE00NzkuMTIzLDIzMi44MzNjMCw0Ljk2Mi00LjAzOCw5LTksOWgtMTZjLTQuOTYyLDAtOS00LjAzOC05LTlWMjA4LjVjMC00Ljk2Miw0LjAzOC05LDktOWgxNmM0Ljk2MiwwLDksNC4wMzgsOSw5VjIzMi44MzN6Ii8+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8L3N2Zz4NCg==
    camel.apache.org/provider: "Apache Software Foundation"
    camel.apache.org/kamelet.group: "Chuck Norris"
  labels:
    camel.apache.org/kamelet.type: "source"
spec:
  definition:
    title: "Chuck Norris Source"
    description: |-
      Gets periodically Chuck Norris jokes
    type: object
    properties:
      period:
        title: Period
        description: The interval (msec) to wait before getting the next joke
        type: integer
        default: 10000
  types:
    out:
      mediaType: text/plain
  dependencies:
    - "camel:kamelet"
    - "camel:timer"
    - "camel:http"
    - "camel:jsonpath"
  template:
    from:
      uri: "timer:chuck"
      parameters:
        period: "{{period}}"
      steps:
        - to: "https://api.chucknorris.io/jokes/random"
        - set-body:
            jsonpath: "$.value"
        - to: "kamelet:sink"

XML examples do not run

While java examples, such as 01-basic, run without problems, examples involving dsl xml get stuck in the "Building Kit" phase.

Steps to reproduce
Run the polyglot example.

Running in dev mode (--dev), I get the following log:

Integration "polyglot" created
Progress: integration "polyglot" in phase Initialization
Condition "IntegrationPlatformAvailable" is "True" for Integration polyglot: camel-basic/camel-k
Integration "polyglot" in phase "Initialization"
Progress: integration "polyglot" in phase Building Kit
Integration "polyglot" in phase "Building Kit"
Condition "IntegrationKitAvailable" is "False" for Integration polyglot: integration kit camel-basic/kit-clbt4o7dv1a5n7ps0grg is in state "Build Submitted"
Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Pending"
Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Running"
Integration Kit "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Build Running"
Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Failed"
Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Initialization" (recovery 1 of 5)
Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Scheduling" (recovery 1 of 5)
Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Pending" (recovery 1 of 5)
Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Running" (recovery 1 of 5)
Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Failed" (recovery 1 of 5)
Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Initialization" (recovery 2 of 5)
(combined from similar events): Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Scheduling" (recovery 2 of 5)
(combined from similar events): Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Pending" (recovery 2 of 5)
(combined from similar events): Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Running" (recovery 2 of 5)
(combined from similar events): Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Failed" (recovery 2 of 5)
(combined from similar events): Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Initialization" (recovery 3 of 5)
(combined from similar events): Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Scheduling" (recovery 3 of 5)
(combined from similar events): Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Pending" (recovery 3 of 5)
(combined from similar events): Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Running" (recovery 3 of 5)
(combined from similar events): Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Failed" (recovery 3 of 5)
(combined from similar events): Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Initialization" (recovery 4 of 5)
(combined from similar events): Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Scheduling" (recovery 4 of 5)
(combined from similar events): Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Pending" (recovery 4 of 5)
(combined from similar events): Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Running" (recovery 4 of 5)
(combined from similar events): Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Failed" (recovery 4 of 5)
(combined from similar events): Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Initialization" (recovery 5 of 5)
(combined from similar events): Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Scheduling" (recovery 5 of 5)
(combined from similar events): Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Pending" (recovery 5 of 5)
(combined from similar events): Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Running" (recovery 5 of 5)
(combined from similar events): Build "kit-clbt4o7dv1a5n7ps0grg", created by Integration "polyglot", changed phase to "Failed" (recovery 5 of 5)
Progress: integration "polyglot" in phase Error
Error: integration "polyglot" deployment failed

02-serverless-api example fails in the camel-k-examples repo

I got the below error which is the same as the error apache/camel-k#2400.
I've opened the issue on this repo as per the suggestion.

[1] 2021-11-09 05:52:00,498 INFO [org.apa.cam.k.lis.SourcesConfigurer] (main) Loading routes from: SourceDefinition{name='MinioCustomizer', language='java', type='source', location='file:/etc/camel/sources/MinioCustomizer.java', }
[1] 2021-11-09 05:52:00,909 ERROR [org.apa.cam.qua.mai.CamelMainRuntime] (main) Failed to start application: org.apache.camel.RuntimeCamelException: org.joor.ReflectException: Compilation error: /test/MinioCustomizer.java:7: error: package com.amazonaws.auth does not exist
[1] import com.amazonaws.auth.AWSCredentials;
[1] ^
[1] /test/MinioCustomizer.java:8: error: package com.amazonaws.auth does not exist

Add message producer route to kafka example

Currently we start a consumer route and then create messages like this

kubectl -n kafka run kafka-producer -ti --image=quay.io/strimzi/kafka:0.30.0-kafka-3.2.0 --rm --restart=Never -- bin/kafka-console-producer.sh --bootstrap-server my-cluster-kafka-bootstrap:9092 --topic my-topic

Ideally we'd like to create these messages with camel-k

Some examples are not working: `kamel run --config|--resource file:` no longer available

Testing Fails

Hi,
Could anyone please help me?
I'm trying to test the Salesforce example.

The Camelsource is not ready and I don't see any errors.

Could anyone please clarify the below?

  1. Do I need to deploy the salesforce-source.yaml in namespace-camel-source? Can I deploy in my own namespace (say, testns) ?
  2. When I apply the salesforce-source.yaml, i don't see the status as ready. Is there a way to troubleshoot this issue?
  3. The uri: salesforce:camelTestTopic is used in the source.yaml. Do i need to do anything in salesforce to set this uri? How does camelsource picks this uri?
    Thanks in advance

02-serverless-api example fails

I fixed the CLI invocation (See #76) but after that I still have issues getting 02-serverless-api to work:

❯ kamel run API.java --open-api file:openapi.yaml --source test/MinioCustomizer.java --property file:test/minio.properties
Modeline options have been loaded from source files
Full command: kamel run API.java --open-api file:openapi.yaml --source test/MinioCustomizer.java --property file:test/minio.properties --dependency=camel-quarkus-openapi-java
Warning: dependency camel:openapi-java not found in Camel catalog
Integration "api" created
❯ kubectl get integrations
NAME   PHASE            KIT   REPLICAS
api    Initialization

After a long wait it inevitably ends up in:

❯ kubectl get integrations
NAME   PHASE   KIT   REPLICAS
api    Error

I pre-checked all requirements (have kamel and knative configured correctly, and the readme.md verification reports AOK).

Remove usage of deprecated VS Code Didact

Several examples are using VS Code Didact readme files. VS Code Didact is no more maintained.
Replacement for interactive tutorials recommendations are:

  • VS Code built-in walkthrough
  • VS Code CodeTour extension maintained by Microsoft

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.