Skip to content

Configure Channel defaults

Knative Eventing provides a default-ch-webhook ConfigMap that contains the configuration settings that govern default Channel creation.

The default default-ch-webhook ConfigMap is as follows:

apiVersion: v1
kind: ConfigMap
metadata:
  name: default-ch-webhook
  namespace: knative-eventing
  labels:
    eventing.knative.dev/release: devel
    app.kubernetes.io/version: devel
    app.kubernetes.io/part-of: knative-eventing
data:
  default-ch-config: |
    clusterDefault:
      apiVersion: messaging.knative.dev/v1
      kind: InMemoryChannel
    namespaceDefaults:
      some-namespace:
        apiVersion: messaging.knative.dev/v1
        kind: InMemoryChannel

By changing the data.default-ch-config property we can define the clusterDefaults and per Namespace defaults.

This configuration is used by the Channel custom resource definition (CRD) to create platform specific implementations.

Note

The clusterDefault setting determines the global, cluster-wide default Channel type. You can configure Channel defaults for individual namespaces by using the namespaceDefaults setting.

We use analytics and cookies to understand site traffic. Information about your use of our site is shared with Google for that purpose. Learn more.

× OK