How to specify channel type for a broker?

9 views
Skip to first unread message

Andrey Stelmashenko

unread,
Aug 4, 2021, 6:35:26 AMAug 4
to Knative Users
There is a page which describes example configuration options of a broker https://knative.dev/docs/eventing/broker/example-mtbroker/

We are using knative-eventing with NATSS and install Nats channels to have durable channels. As far as I know broker uses a channel, so if I use MTChannelBasedBroker how to configure it to use nats channel (I assume by default it will use inmemorychannel)?

Thanks

Ashleigh Brennan

unread,
Aug 4, 2021, 10:27:40 AMAug 4
to Andrey Stelmashenko, Knative Users
Hi Andrey,

You can set the default channel for the broker by modifying the config-br-default-channel ConfigMap afaik: https://knative.dev/docs/admin/install/operator/configuring-eventing-cr/#setting-the-default-channel-for-the-broker
I'm not sure how to set it for NATSS, I would think it's kind: NatssChannel as per https://github.com/knative-sandbox/eventing-natss/blob/release-0.24/config/README.md though, but someone with may experience may be able to give more guidance.

Would you mind also opening an issue in the /docs repo for this please? I think it would be good to capture this info for other channel types besides Kafka in the docs.

Thanks,

Ashleigh Brennan

Senior Technical Writer, Serverless

Red Hat


M: 479-280-3837    



--
You received this message because you are subscribed to the Google Groups "Knative Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to knative-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/knative-users/4f36343f-c355-4282-a5ac-f15aee41e468n%40googlegroups.com.

Andrey Stelmashenko

unread,
Aug 11, 2021, 5:08:23 AMAug 11
to Knative Users
Thank you for the answer,

There is no need in issue.. Maybe I was blind on site changed, but now I see a paragraph:

> spec.config is used to specify the default backing channel configuration for MT channel-based broker implementations. For more information on configuring the default  channel type, see the documentation on ConfigMaps.

Reply all
Reply to author
Forward
0 new messages