Kafka

Functions can used as sinks for Knative Eventing event sources such as Kafka.

Here's how to setup a function as an event sink for the Kafka event source:

functions:
  myFunction:
    handler: gcr.io/knative-releases/github.com/knative/eventing-contrib/cmd/event_display:latest
    events:
      - kafka:
          consumerGroup: ${env:KAFKA_CONSUMER_GROUP_NAME}
          bootstrapServers:
            - server1
            - server2
          topics:
            - my-topic
Edit this page

Kafka

Functions can used as sinks for Knative Eventing event sources such as Kafka.

Here's how to setup a function as an event sink for the Kafka event source:

functions:
  myFunction:
    handler: gcr.io/knative-releases/github.com/knative/eventing-contrib/cmd/event_display:latest
    events:
      - kafka:
          consumerGroup: ${env:KAFKA_CONSUMER_GROUP_NAME}
          bootstrapServers:
            - server1
            - server2
          topics:
            - my-topic