|
| 1 | +# Redis Broker |
| 2 | + |
| 3 | +## Spec |
| 4 | + |
| 5 | +```yaml |
| 6 | +apiVersion: eventing.triggermesh.io/v1alpha1 |
| 7 | +kind: RedisBroker |
| 8 | +metadata: |
| 9 | + name: <broker instance name> |
| 10 | +spec: |
| 11 | + redis: |
| 12 | + connection: <Provides a connection to an external Redis instance. Optional> |
| 13 | + url: <redis URL. Required> |
| 14 | + username: <redis username, referenced using a Kubernetes secret> |
| 15 | + secretKeyRef: |
| 16 | + name: <Kubernetes secret name> |
| 17 | + key: <Kubernetes secret key> |
| 18 | + password: <redis password, referenced using a Kubernetes secret> |
| 19 | + secretKeyRef: |
| 20 | + name: <Kubernetes secret name> |
| 21 | + key: <Kubernetes secret key> |
| 22 | + tlsEnabled: <boolean that indicates if the Redis server is TLS protected. Optional, defaults to false> |
| 23 | + tlsSkipVerify: <boolean that skips verifying TLS certificates. Optional, defaults to false> |
| 24 | + stream: <Redis stream name. Optional, defaults to a combination of namespace and broker name> |
| 25 | + streamMaxLen: <maximum number of items the Redis stream can host. Optional, defaults to unlimited> |
| 26 | + broker: |
| 27 | + port: <HTTP port for ingesting events> |
| 28 | + observability: |
| 29 | + valueFromConfigMap: <kubernetes ConfigMap that contains observability configuration> |
| 30 | +``` |
| 31 | +
|
| 32 | +The only `RedisBroker` specific parameters are: |
| 33 | + |
| 34 | +- `spec.redis.connection`. When not used the broker will spin up a managed Redis Deployment. However for production scenarios that require HA and hardened security it is recommended to provide the connection to a user managed Redis instance. |
| 35 | +- `spec.stream` is the Redis stream name to be used by the broker. If it doesn't exists the Broker will create it. |
| 36 | +- `spec.streamMaxLen` is the maximum number of elements that the stream will contain. |
| 37 | + |
| 38 | +The `spec.broker` section contains generic Borker parameters: |
| 39 | + |
| 40 | +- `spec.broker.port` that the Broker service will be listening at. Optional, defaults to port 80. |
| 41 | +- `spec.broker.observability` can be set to the name of a ConfigMap at the same namespace that contains [observability settings](observability.md). This parameter is optional. |
| 42 | + |
| 43 | +## Example |
| 44 | + |
| 45 | +- See [RedisBroker example](https://github.com/triggermesh/triggermesh-core/blob/main/docs/assets/manifests/getting-started-redis/broker.yaml) |
| 46 | +- See [RedisBroker getting started guide](getting-started-redis.md) |
0 commit comments