mirror of https://github.com/knative/docs.git
fix the broker configmap example (#2315)
* fix the broker configmap example * address pr feedback
This commit is contained in:
parent
5137c7f427
commit
ec013cebf5
|
@ -363,7 +363,7 @@ Deploy your first app with the [getting started with Knative app deployment](../
|
||||||
|
|
||||||
## Installing the Eventing component
|
## Installing the Eventing component
|
||||||
|
|
||||||
{{< feature-state version="v0.2" state="alpha" >}}
|
{{< feature-state version="v0.13" state="beta" >}}
|
||||||
|
|
||||||
|
|
||||||
The following commands install the Knative Eventing component.
|
The following commands install the Knative Eventing component.
|
||||||
|
@ -415,7 +415,7 @@ To learn more about the Google Cloud Pub/Sub Channel, try [our sample](https://g
|
||||||
|
|
||||||
{{% tab name="In-Memory (standalone)" %}}
|
{{% tab name="In-Memory (standalone)" %}}
|
||||||
|
|
||||||
{{< feature-state version="v0.2" state="alpha" >}}
|
{{< feature-state version="v0.13" state="beta" >}}
|
||||||
|
|
||||||
The following command installs an implementation of Channel that runs in-memory. This implementation is nice because it is simple and standalone, but it is unsuitable for production use cases.
|
The following command installs an implementation of Channel that runs in-memory. This implementation is nice because it is simple and standalone, but it is unsuitable for production use cases.
|
||||||
|
|
||||||
|
@ -446,7 +446,7 @@ The following command installs an implementation of Channel that runs in-memory.
|
||||||
<!-- This indentation is important for things to render properly. -->
|
<!-- This indentation is important for things to render properly. -->
|
||||||
{{< tabs name="eventing_brokers" default="Channel-based" >}}
|
{{< tabs name="eventing_brokers" default="Channel-based" >}}
|
||||||
{{% tab name="Channel-based" %}}
|
{{% tab name="Channel-based" %}}
|
||||||
{{< feature-state version="v0.5" state="alpha" >}}
|
{{< feature-state version="v0.13" state="beta" >}}
|
||||||
|
|
||||||
The following command installs an implementation of Broker that utilizes Channels:
|
The following command installs an implementation of Broker that utilizes Channels:
|
||||||
|
|
||||||
|
@ -454,31 +454,33 @@ The following command installs an implementation of Broker that utilizes Channel
|
||||||
kubectl apply --filename {{< artifact repo="eventing" file="channel-broker.yaml" >}}
|
kubectl apply --filename {{< artifact repo="eventing" file="channel-broker.yaml" >}}
|
||||||
```
|
```
|
||||||
|
|
||||||
To customize which channel implementation is used, update the following ConfigMap:
|
To customize which broker channel implementation is used, update the following
|
||||||
|
ConfigMap to specify which configurations are used for which namespaces:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: default-ch-webhook
|
name: config-br-defaults
|
||||||
namespace: knative-eventing
|
namespace: knative-eventing
|
||||||
data:
|
data:
|
||||||
default-ch-config: |
|
default-br-config: |
|
||||||
# This is the cluster-wide default channel.
|
# This is the cluster-wide default broker channel.
|
||||||
clusterDefault:
|
clusterDefault:
|
||||||
apiVersion: messaging.knative.dev/v1alpha1
|
apiVersion: v1
|
||||||
kind: InMemoryChannel
|
kind: ConfigMap
|
||||||
|
name: imc-channel
|
||||||
|
namespace: knative-eventing
|
||||||
|
# This allows you to specify different defaults per-namespace,
|
||||||
|
# in this case the "some-namespace" namespace will use the Kafka
|
||||||
|
# channel ConfigMap by default (only for example, you will need
|
||||||
|
# to install kafka also to make use of this).
|
||||||
namespaceDefaults:
|
namespaceDefaults:
|
||||||
# This allows you to specify different defaults per-namespace,
|
|
||||||
# in this case the "some-namespace" namespace will use the Kafka
|
|
||||||
# channel by default.
|
|
||||||
some-namespace:
|
some-namespace:
|
||||||
apiVersion: messaging.knative.dev/v1alpha1
|
apiVersion: v1
|
||||||
kind: KafkaChannel
|
kind: ConfigMap
|
||||||
spec:
|
name: kafka-channel
|
||||||
numPartitions: 2
|
namespace: knative-eventing
|
||||||
replicationFactor: 1
|
|
||||||
```
|
```
|
||||||
|
|
||||||
{{< /tab >}}
|
{{< /tab >}}
|
||||||
|
|
Loading…
Reference in New Issue