Skip to content

Commit

Permalink
updated commands
Browse files Browse the repository at this point in the history
  • Loading branch information
abrennan89 committed Oct 11, 2022
1 parent 79a277f commit 5c3dd77
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions docs/eventing/brokers/broker-admin-config-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,14 +305,21 @@ data:

The pod now has two containers:

```bash
```{ .bash .no-copy }
knative-eventing <broker-ingress-pod-name> 2/2 Running 1 175m
```

1. Create a broker, then use get the URL of your broker by running the command:

```bash
kubectl get broker -A
kubectl get broker <broker-name>
```

Example output:

```{ .bash .no-copy }
NAMESPACE NAME URL AGE READY REASON
default my-broker http://broker-ingress.knative-eventing.svc.cluster.local/default/my-broker 6s True
```

1. Start a `curl` pod:
Expand All @@ -336,7 +343,7 @@ data:

Where `<broker-URL>` is the URL of your broker. For example:

```bash
```{ .bash .no-copy }
curl -X POST -v \
-H "content-type: application/json" \
-H "ce-specversion: 1.0" \
Expand All @@ -349,7 +356,7 @@ data:

1. You will receive a `202` HTTP response code, that the broker did accept the request:

```bash
```{ .bash .no-copy }
...
* Mark bundle as not supporting multiuse
< HTTP/1.1 202 Accepted
Expand Down Expand Up @@ -397,7 +404,7 @@ data:

1. Now retrying the `curl` command results in a `403 - Forbidden` response code from the server:

```bash
```{ .bash .no-copy }
...
* Mark bundle as not supporting multiuse
< HTTP/1.1 403 Forbidden
Expand Down Expand Up @@ -427,7 +434,7 @@ data:

The server now responds with a `202` response code, indicating that it has accepted the HTTP request:

```bash
```{ .bash .no-copy }
* Mark bundle as not supporting multiuse
< HTTP/1.1 202 Accepted
< allow: POST, OPTIONS
Expand Down

0 comments on commit 5c3dd77

Please sign in to comment.