Apache Kafka Sink

    Knative Eventing installation.

    Installation

    1. Install the Kafka controller:

    2. Install the Kafka Sink data plane:

    A KafkaSink object looks like this:

    Kafka Producer configurations

    A Kafka Producer is the component responsible for sending events to the Apache Kafka cluster. Knative exposes all available Kafka Producer configurations that can be modified to suit your workloads.

    You can change these configurations by modifying the config-kafka-sink-data-plane config map in the namespace.

    Documentation for the settings available in this config map is available on the , in particular, Producer configurations.

    1. Apply the following kafka-config-logging config map:

      1. apiVersion: v1
      2. kind: ConfigMap
      3. metadata:
      4. name: kafka-config-logging
      5. data:
      6. <configuration>
      7. <appender name="jsonConsoleAppender" class="ch.qos.logback.core.ConsoleAppender">
      8. <encoder class="net.logstash.logback.encoder.LogstashEncoder"/>
      9. </appender>
      10. <root level="DEBUG">
      11. <appender-ref ref="jsonConsoleAppender"/>
      12. </root>
      13. </configuration>
    • To report bugs or add feature requests, open an issue in the .

    Feedback

    Was this page helpful?

    Glad to hear it! Please .