github.com/argoproj/argo-events@v1.9.1/examples/event-sources/mqtt.yaml (about) 1 apiVersion: argoproj.io/v1alpha1 2 kind: EventSource 3 metadata: 4 name: mqtt 5 spec: 6 mqtt: 7 example: 8 # mqtt broker url 9 url: tcp://mqtt.argo-events:1883 10 # name of the popic 11 topic: bar 12 # jsonBody specifies that all event body payload coming from this 13 # source will be JSON 14 jsonBody: true 15 # client id 16 clientId: "2345" 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 "2s". 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 29 # example-tls: 30 # url: "tcp://mqtt.argo-events:1883" 31 # topic: "bar" 32 # jsonBody: true 33 # clientId: "2345" 34 # tls: 35 # caCertSecret: 36 # name: my-secret 37 # key: ca-cert-key 38 # clientCertSecret: 39 # name: my-secret 40 # key: client-cert-key 41 # clientKeySecret: 42 # name: my-secret 43 # key: client-key-key 44 45 # example-auth: 46 # url: "tcp://mqtt.argo-events:1883" 47 # topic: "bar" 48 # jsonBody: true 49 # clientId: "2345" 50 # # username and password for authentication 51 # # use secret selectors 52 # auth: 53 # username: 54 # name: my-secret 55 # key: username 56 # password: 57 # name: my-secret 58 # key: password