github.com/argoproj/argo-events@v1.9.1/examples/event-sources/kafka.yaml (about)

     1  apiVersion: argoproj.io/v1alpha1
     2  kind: EventSource
     3  metadata:
     4    name: kafka
     5  spec:
     6    kafka:
     7      example:
     8        # kafka broker url
     9        url: kafka.argo-events:9092
    10        # name of the kafka topic
    11        topic: topic-2
    12        # jsonBody specifies that all event body payload coming from this
    13        # source will be JSON
    14        jsonBody: true
    15        # partition id
    16        partition: "1"
    17        # optional backoff time for connection retries.
    18        # if not provided, default connection backoff time will be used.
    19        connectionBackoff:
    20          # duration in nanoseconds, or strings like "3s", "2m". following value is 10 seconds
    21          duration: 10s
    22          # how many backoffs
    23          steps: 5
    24          # factor to increase on each step.
    25          # setting factor > 1 makes backoff exponential.
    26          factor: 2
    27          jitter: 0.2
    28  #      Use a consumer group, if this is used you do not need to specify a "partition: <id>"
    29  #      consumerGroup:
    30  #        groupName: test-group
    31  #        oldest: false
    32  #        rebalanceStrategy: range
    33  #      limitEventsPerSecond: 1
    34  #      version: "2.5.0"
    35  
    36  ##    Enable TLS authentication ( not to be used with SASL)
    37  #      tls:
    38  #        caCertSecret:
    39  #          name: my-secret
    40  #          key: ca-cert-key
    41  #        clientCertSecret:
    42  #          name: my-secret
    43  #          key: client-cert-key
    44  #        clientKeySecret:
    45  #          name: my-secret
    46  #          key: client-key-key
    47  
    48  ##    Enable SASL authentication (not to be used with TLS)
    49  #     sasl:
    50  #        mechanism: PLAIN
    51  #        passwordSecret:
    52  #          key: password
    53  #          name: my-user
    54  #        userSecret:
    55  #          key: user
    56  #          name: my-user