Skip to content

Commit

Permalink
Merge pull request lsst-sqre#3901 from lsst-sqre/tickets/DM-47661
Browse files Browse the repository at this point in the history
tickets/DM-47661: Create S3 topics for Kafka
  • Loading branch information
mareuter authored Nov 21, 2024
2 parents 6baa078 + f16fa67 commit 4b99d26
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions applications/sasquatch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ Rubin Observatory's telemetry service
| strimzi-kafka.users.replicator.enabled | bool | `false` | Enable user replicator (used by Mirror Maker 2 and required at both source and target clusters) |
| strimzi-kafka.users.telegraf.enabled | bool | `false` | Enable user telegraf (deployed by parent Sasquatch chart) |
| strimzi-kafka.users.tsSalKafka.enabled | bool | `false` | Enable user ts-salkafka, used at the telescope environments |
| strimzi-kafka.users.tsSalKafka.topics | list | `[]` | Create lsst.s3.* related topics for the ts-salkafka user. |
| telegraf-kafka-consumer.affinity | object | `{}` | Affinity for pod assignment |
| telegraf-kafka-consumer.args | list | `[]` | Arguments passed to the Telegraf agent containers |
| telegraf-kafka-consumer.enabled | bool | `false` | Wether the Telegraf Kafka Consumer is enabled |
Expand Down
1 change: 1 addition & 0 deletions applications/sasquatch/charts/strimzi-kafka/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,4 @@ A subchart to deploy Strimzi Kafka components for Sasquatch.
| users.replicator.enabled | bool | `false` | Enable user replicator (used by Mirror Maker 2 and required at both source and target clusters) |
| users.telegraf.enabled | bool | `false` | Enable user telegraf (deployed by parent Sasquatch chart) |
| users.tsSalKafka.enabled | bool | `false` | Enable user ts-salkafka, used at the telescope environments |
| users.tsSalKafka.topics | list | `[]` | Create lsst.s3.* related topics for the ts-salkafka user. |
15 changes: 15 additions & 0 deletions applications/sasquatch/charts/strimzi-kafka/templates/topics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{- if .Values.users.tsSalKafka.enabled }}
{{- $cluster := .Values.cluster.name }}
{{- range $topic := .Values.users.tsSalKafka.topics }}
---
apiVersion: kafka.strimzi.io/v1beta1
kind: KafkaTopic
metadata:
name: {{ $topic }}
labels:
strimzi.io/cluster: {{ $cluster }}
spec:
replicas: 3
partitions: 1
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions applications/sasquatch/charts/strimzi-kafka/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ users:
# -- Enable user ts-salkafka, used at the telescope environments
enabled: false

# -- Create lsst.s3.* related topics for the ts-salkafka user.
topics: []

kafdrop:
# -- Enable user Kafdrop (deployed by parent Sasquatch chart).
enabled: false
Expand Down
3 changes: 3 additions & 0 deletions applications/sasquatch/values-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ strimzi-kafka:
enabled: true
tsSalKafka:
enabled: true
topics:
- lsst.s3.raw.latiss
- lsst.s3.raw.lsstcam
kafdrop:
enabled: true
telegraf:
Expand Down

0 comments on commit 4b99d26

Please sign in to comment.