1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-07 00:48:01 +01:00
Files
openshift-docs/modules/serverless-creating-broker-admin.adoc
2020-09-30 19:09:02 +00:00

38 lines
972 B
Plaintext

// Module included in the following assemblies:
//
// * serverless/event_workflows/serverless-using-brokers.adoc
[id="serverless-creating-broker-admin_{context}"]
= Creating a broker as a cluster administrator using namespace annotation
If you have cluster administrator permissions, you can create the `default` broker automatically by using namespace annotation.
[NOTE]
====
Brokers created due to annotation will not be removed if you remove the annotation. You must manually delete them.
====
.Prerequisites
* Knative Eventing installed.
* Cluster administrator permissions for {product-title}.
.Procedure
* Annotate your namespace by entering the following command:
+
[source,terminal]
----
$ oc label namespace <namespace> knative-eventing-injection=enabled
----
.Verification steps
* You can verify that the broker has been created successfully by entering the following command:
+
[source,terminal]
----
$ oc -n <namespace> get broker <broker-name>
----