mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
32 lines
633 B
Plaintext
32 lines
633 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * serverless/event_workflows/serverless-channels.adoc
|
|
|
|
[id="serverless-create-inmemorychannel_{context}"]
|
|
= Creating a development channel
|
|
|
|
.Procedure
|
|
|
|
You can create a channel using the cluster default configuration by completing the following procedure.
|
|
|
|
. Create a `Channel` object.
|
|
.. Create a YAML file and copy the following sample code into it:
|
|
+
|
|
|
|
[source,yaml]
|
|
----
|
|
apiVersion: messaging.knative.dev/v1
|
|
kind: Channel
|
|
metadata:
|
|
name: example-channel
|
|
namespace: default
|
|
----
|
|
|
|
.. Apply the YAML file by entering:
|
|
+
|
|
|
|
[source,terminal]
|
|
----
|
|
$ oc apply -f <filename>
|
|
----
|