Creating a broker
You can create a broker by using the CLI or by applying YAML files using kubectl
.
kn
You can create a broker in current namespace by entering the following command:
NOTE: If you choose not to specify a namespace, the broker will be created in the current namespace.
-
kn broker list
kubectl
The YAML in the following example creates a broker named default
in the current namespace. For more information about configuring broker options using YAML, see the full broker configuration example.
Create a broker in the current namespace by creating a YAML file using the following template:
kind: Broker
name: <broker-name>
-
Where is the name of the file you created in the previous step.
Optional: Verify that the broker is working correctly, by entering the following command:
This shows information about your broker. If the broker is working correctly, it shows a
READY
status ofTrue
:If the status is
False
, wait a few moments and then run the command again.