Added support for multiple kafka clusters

This commit is contained in:
Nir Gazit
2021-01-19 16:59:39 +02:00
parent a81bc52801
commit 285d216403
14 changed files with 295 additions and 56 deletions
+5 -3
View File
@@ -65,8 +65,10 @@ import { Router as KafkaRouter } from '@backstage/plugin-kafka';
```yaml
kafka:
clientId: backstage
brokers:
- localhost:9092
clusters:
- name: cluster-name
brokers:
- localhost:9092
```
6. Add `kafka.apache.org/consumer-groups` annotation to your services:
@@ -77,7 +79,7 @@ kind: Component
metadata:
# ...
annotations:
kafka.apache.org/consumer-groups: consumer-group-name
kafka.apache.org/consumer-groups: cluster-name/consumer-group-name
spec:
type: service
```