-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release-1.11] Added kafka features config map to kafka broker docs (#…
…5705) * Added kafka features config map to kafka broker docs * Update docs/eventing/brokers/broker-types/kafka-broker/README.md Co-authored-by: Leo Li <leoli@redhat.com> * Update docs/eventing/brokers/broker-types/kafka-broker/README.md Co-authored-by: Leo Li <leoli@redhat.com> * Update docs/eventing/brokers/broker-types/kafka-broker/README.md Co-authored-by: Leo Li <leoli@redhat.com> * Update docs/eventing/brokers/broker-types/kafka-broker/README.md Co-authored-by: Leo Li <leoli@redhat.com> * Update docs/eventing/brokers/broker-types/kafka-broker/README.md Co-authored-by: Leo Li <leoli@redhat.com> * Update docs/eventing/brokers/broker-types/kafka-broker/README.md Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> * Moved kafka features config info to new page * Apply suggestions from code review Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> * Follow example from serving for documenting configmap keys Signed-off-by: Calum Murray <cmurray@redhat.com> * Fix macro Signed-off-by: Calum Murray <cmurray@redhat.com> --------- Signed-off-by: Calum Murray <cmurray@redhat.com> Co-authored-by: Calum Murray <cmurray@redhat.com> Co-authored-by: Leo Li <leoli@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
- Loading branch information
1 parent
d77e159
commit 2809155
Showing
3 changed files
with
75 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
docs/eventing/brokers/broker-types/kafka-broker/configuring-kafka-features.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Configuring Kafka Features | ||
|
||
There are many different configuration options for how Knative Eventing and the Knaitve Broker for Apache Kafka interact with the Apache Kafka clusters. | ||
|
||
## Configure Knative Eventing Kafka features | ||
|
||
There are various kafka features/default values the Knative Kafka Broker uses when interacting with Kafka. | ||
|
||
### Consumer Group ID for Triggers | ||
|
||
The `triggers.consumergroup.template` value determines the template used to generate the consumer group ID used by your triggers. | ||
|
||
* **Global key:** `triggers.consumergroup.template` | ||
* **Possible values:**: Any valid [go text/template](https://pkg.go.dev/text/template) | ||
* **Default:** `{% raw %}knative-trigger-{{ .Namespace }}-{{ .Name }}{% endraw %}` | ||
|
||
**Example:** | ||
|
||
=== "Global (ConfigMap)" | ||
```yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: config-kafka-features | ||
namespace: knative-eventing | ||
data: | ||
triggers.consumergroup.template: {% raw %}"knative-trigger-{{ .Namespace }}-{{ .Name }}"{% endraw %} | ||
``` | ||
|
||
### Broker topic name template | ||
|
||
The `brokers.topic.template` values determines the template used to generate the Kafka topic names used by your brokers. | ||
|
||
* **Global Key:** `brokers.topic.template` | ||
* **Possible values:** Any valid [go text/template](https://pkg.go.dev/text/template) | ||
* **Default:** `{% raw %}knative-broker-{{ .Namespace }}-{{ .Name }}{% endraw %}` | ||
|
||
**Example:** | ||
|
||
=== "Global (ConfigMap)" | ||
```yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: config-kafka-features | ||
namespace: knative-eventing | ||
data: | ||
brokers.topic.template: {% raw %}"knative-broker-{{ .Namespace }}-{{ .Name }}"{% endraw %} | ||
``` | ||
|
||
## Channel topic name template | ||
|
||
The `channels.topic.template` value determines the template used to generate the kafka topic names used by your channels. | ||
|
||
* **Global Key:** `channels.topic.template` | ||
* **Possible values:** Any valid [go text/template](https://pkg.go.dev/text/template) | ||
* **Default:** `{% raw %}messaging-kafka.{{ .Namespace }}.{{ .Name }}{% endraw %}` | ||
|
||
**Example:** | ||
|
||
=== "Global (ConfigMap)" | ||
```yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: config-kafka-features | ||
namespace: knative-eventing | ||
data: | ||
channels.topic.template: {% raw %}"messaging-kafka.{{ .Namespace }}.{{ .Name }}"{% endraw %} | ||
``` |