Git Product home page Git Product logo

knative-broker-box's Introduction

Knative Broker for Apache Kafka

Development setup of the Knative Broker for Apache Kafka, using Strimzi and the KRaft feature gate.

  • 00-installer-kind.sh: Creates a Kind cluster
  • 01-strimzi.sh: Creates a single node Apache Kafka, with KRaft mode
  • 02-kn-eventing.sh: Setups up the bare minimum of Knative Eventing
  • 03-kn-broker.sh: Installs and configures the Knative Broker for Apache Kafka. NOTE: This is just the Kafka-based broker implementation. No other Kafka-based components, like the channel, the source or the sink are enabled.
  • 04-kn-example-broker.sh: Creates a sample broker object

Have fun!

Sending CloudEvents to the Broker

With curl you can easily send a CloudEvent to the broker.

The broker is accessible via the kafka-broker-ingress service in the knative-eventing namespace, and for simplicity we can enable port-forward to access it via localhost:

kubectl -n knative-eventing port-forward service/kafka-broker-ingress 8080:80

Now perform a curl:

curl -v -X POST \
    -H "content-type: application/json"  \
    -H "ce-specversion: 1.0"  \
    -H "ce-source: curl-command"  \
    -H "ce-type: curl.demo"  \
    -H "ce-myextension: super-duper-ce-extension"  \
    -H "ce-id: 123-abc"  \
    -d '{"message":"Hello World"}' \
    http://localhost:8080/default/my-demo-kafka-broker

knative-broker-box's People

Contributors

aliok avatar matzew avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

aliok rajibmitra

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.