Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit 835d7ea

Browse files
Document listing namespaced brokers with svcat
1 parent d735050 commit 835d7ea

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

docs/cli.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,34 @@ Below are some common tasks made easy with svcat. The example output assumes tha
3737

3838
## Find brokers installed on the cluster
3939

40+
This lists all brokers available in the current namespace and at the cluster scope.
41+
4042
```console
4143
$ svcat get brokers
42-
NAME URL STATUS
43-
+------------+-----------------------------------------------------------+--------+
44-
ups-broker http://ups-broker-ups-broker.ups-broker.svc.cluster.local Ready
44+
NAME NAMESPACE URL STATUS
45+
+--------------------+------------+-----------------------------------------------------------+--------+
46+
minibroker http://minibroker-minibroker.minibroker.svc.cluster.local Ready
47+
myminibroker myspace http://minibroker-minibroker.minibroker.svc.cluster.local Ready
48+
```
49+
50+
Use the `--namespace` and `--all-namespaces` flags to control which namespace to view:
51+
52+
```console
53+
$ svcat get brokers --namespace default
54+
NAME NAMESPACE URL STATUS
55+
+--------------------+-----------+-----------------------------------------------------------+--------+
56+
minibroker http://minibroker-minibroker.minibroker.svc.cluster.local Ready
57+
ups-broker default http://ups-broker-ups-broker.ups-broker.svc.cluster.local Ready
58+
```
59+
60+
You can view only cluster-scoped brokers with the `--scope` flag:
61+
62+
```
63+
$ svcat get brokers --scope cluster
64+
NAME NAMESPACE URL STATUS
65+
+-------------------+------------+-----------------------------------------------------------+--------+
66+
minibroker http://minibroker-minibroker.minibroker.svc.cluster.local Ready
67+
4568
```
4669

4770
## Trigger a sync of a broker's catalog

0 commit comments

Comments
 (0)