github.com/argoproj/argo-events@v1.9.1/examples/event-sources/redis-streams.yaml (about) 1 apiVersion: argoproj.io/v1alpha1 2 kind: EventSource 3 metadata: 4 name: redis-stream 5 spec: 6 redisStream: 7 example: 8 # HostAddress refers to the address of the Redis host/server 9 hostAddress: redis.argo-events.svc:6379 10 11 # Password required for authentication. 12 # +optional 13 # password: 14 # name: name_of_secret_that_holds_password 15 # key: key_within_secret_which_holds_password_value 16 17 # DB to use. If not specified, default DB 0 will be used. 18 # +optional 19 db: 0 20 21 # MaxMsgCountPerRead holds the maximum number of messages per stream that will be read in each XREADGROUP of all streams 22 # Example: if there are 2 streams and MaxMsgCountPerRead=10, then each XREADGROUP may read upto a total of 20 messages. 23 # Same as COUNT option in XREADGROUP(https://redis.io/topics/streams-intro). Defaults to 10 24 # +optional 25 # maxMsgCountPerRead: 50 26 27 # ConsumerGroup refers to the Redis stream consumer group that will be created on all redis streams. 28 # Messages are read through this group. Defaults to 'argo-events-cg' 29 # +optional 30 # consumerGroup: argo-events-cg 31 32 # Streams to listen for events. XREADGROUP is used on all streams using a single consumer group. 33 streams: 34 - FOO 35 36 # example-tls: 37 # hostAddress: redis.argo-events.svc:6379 38 # db: 0 39 # streams: 40 # - FOO 41 # tls: 42 # caCertSecret: 43 # name: my-secret 44 # key: ca-cert-key 45 # clientCertSecret: 46 # name: my-secret 47 # key: client-cert-key 48 # clientKeySecret: 49 # name: my-secret 50 # key: client-key-key