Creating a channel using cluster or namespace defaults

    1. Create a Channel object:

      Since this object is created in the namespace, according to the default ConfigMap example in the previous section, it will be an InMemoryChannel channel implementation.

      1. kind: Channel
      2. name: my-channel
      3. spec:
      4. apiVersion: messaging.knative.dev/v1

      NOTE: The spec.channelTemplate property cannot be changed after creation, since it is set by the default channel mechanism, not the user.

    2. The channel controller creates a backing channel instance based on the .

    NOTE: Defaults only apply on object creation. Defaults are applied by the webhook only on Channel or Sequence creation. If the default settings change, the new defaults will only apply to newly-created channels, brokers, or sequences. Existing ones will not change.

    Was this page helpful?

    Sorry to hear that. Please tell us how we can improve.