github.com/argoproj/argo-events@v1.9.1/examples/event-sources/nats.yaml (about) 1 apiVersion: argoproj.io/v1alpha1 2 kind: EventSource 3 metadata: 4 name: nats 5 spec: 6 nats: 7 example: 8 # url of the nats service 9 url: nats://nats.argo-events.svc:4222 10 # jsonBody specifies that all event body payload coming from this 11 # source will be JSON 12 jsonBody: true 13 # subject name 14 subject: foo 15 # optional backoff time for connection retries. 16 # if not provided, default connection backoff time will be used. 17 connectionBackoff: 18 # duration in nanoseconds, or strings like "4s", "1m". following value is 10 seconds 19 duration: 10s 20 # how many backoffs 21 steps: 5 22 # factor to increase on each step. 23 # setting factor > 1 makes backoff exponential. 24 factor: 2 25 jitter: 0.2 26 27 # example-tls: 28 # url: nats://nats.argo-events.svc:4222 29 # jsonBody: true 30 # subject: "foo" 31 # tls: 32 # caCertSecret: 33 # name: my-secret 34 # key: ca-cert-key 35 # clientCertSecret: 36 # name: my-secret 37 # key: client-cert-key 38 # clientKeySecret: 39 # name: my-secret 40 # key: client-key-key 41 42 # example-auth-basic: 43 # url: nats://nats.argo-events.svc:4222 44 # jsonBody: true 45 # subject: "foo" 46 # auth: 47 # basic: 48 # username: 49 # name: my-secret 50 # key: name 51 # password: 52 # name: my-secret 53 # key: password 54 55 # example-auth-nkey: 56 # url: nats://nats.argo-events.svc:4222 57 # jsonBody: true 58 # subject: "foo" 59 # auth: 60 # nkey: 61 # name: my-secret 62 # key: my-key 63 64 # example-auth-token: 65 # url: nats://nats.argo-events.svc:4222 66 # jsonBody: true 67 # subject: "foo" 68 # auth: 69 # token: 70 # name: my-secret 71 # key: my-token 72 73 # example-auth-credential: 74 # url: nats://nats.argo-events.svc:4222 75 # jsonBody: true 76 # subject: "foo" 77 # auth: 78 # credential: 79 # name: my-secret 80 # key: my-credential 81