-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure bootstrapServers for KafkaSink from ConfigMap field #3726
Comments
Hey @eshepelyuk I like this idea, it does seem to make things easier for users. Maybe for @matzew or @pierDipi or @creydr - if we decide to support this API change on KafkaSinks, does it make sense to move towards supporting it across all of our Knative Kafka components? I could see this having a few benefits:
I understand we currently support different secret formats and config stuff across different components, and we may need to continue to support those, so this may not replace those existing configs and instead add a newer, more consistent way to configure the Kafka pieces across all Knative Kafka components. WDYT? |
Would supporting the same Kafka broker config format (with fixed keys) work for you @eshepelyuk? https://knative.dev/docs/eventing/brokers/broker-types/kafka-broker/#create-a-kafka-broker |
Can you provide an example how |
Like this @eshepelyuk apiVersion: eventing.knative.dev/v1alpha1
kind: KafkaSink
metadata:
name: my-sink
spec:
topic: my-sink
config:
apiVersion: v1
kind: ConfigMap
name: kafka-sink-config
---
apiVersion: v1
kind: ConfigMap
metadata:
name: kafka-sink-config
data:
bootstrap.servers: "my-cluster-kafka-bootstrap.kafka:9092" |
Yes, that would work. |
This issue is stale because it has been open for 90 days with no |
go away bot |
This issue is stale because it has been open for 90 days with no |
/triage accepted |
Problem
Frequently kafka bootstrap servers are stored in
ConfigMap
field in every namespace, for various app to be able to access the same brokers uniformely. Then applications could refer theConfigMap
either mounting it viavolumeMount
or setup env variable via Downward APIAlso a lot of applications supports bootstrap servers as a string separated by commas, like:
broker1:9092,broker2:9092,broker3:9092
.So the
ConfigMap
may look likeIt could be great if
KafkaSink
could refer suchConfigMap
, so the same settings can be leveraged betweenKafkaSink
and other applications and there would be no need to configure bootstrap servers separately forKafkaSink
instances.New API may look like
Persona:
KafkaSink
usersExit Criteria
ConfigMap
with bootstrap serversKafkaSink
referring thatConfigMap
Time Estimate (optional):
Have no idea :(
The text was updated successfully, but these errors were encountered: