Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/getting-started-memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ Wait until the MemoryBroker is ready. It will inform in its status of the URL wh
kubectl get memorybroker demo

NAME URL AGE READY REASON
demo http://demo-mb-broker.default.svc.cluster.local 10s True
demo http://demo-mb-broker.default.svc.cluster.local:8080 10s True
```

To be able to use the broker we will create a Pod that allow us to send events inside the Kubernetes cluster.
To be able to use the broker we will create a `curl` Pod that allow us to send events inside the Kubernetes cluster.

```console
kubectl apply -f https://raw.githubusercontent.com/triggermesh/triggermesh-core/main/docs/assets/manifests/common/curl.yaml
Expand All @@ -35,7 +35,7 @@ kubectl apply -f https://raw.githubusercontent.com/triggermesh/triggermesh-core/
It is possible now to send events to the broker address by issuing curl commands. The response for ingested events must be an `HTTP 200` which means that the broker has received it and will try to deliver them to configured triggers.

```console
kubectl exec -ti curl -- curl -v http://demo-mb-broker.default.svc.cluster.local/ \
kubectl exec -ti curl -- curl -v http://demo-mb-broker.default.svc.cluster.local:8080 \
-X POST \
-H "Ce-Id: 1234-abcd" \
-H "Ce-Specversion: 1.0" \
Expand Down Expand Up @@ -67,7 +67,7 @@ The Trigger created above filters by CloudEvents containing `type: demo.type1` a
Using the `curl` Pod again we can send this CloudEvent to the broker.

```console
kubectl exec -ti curl -- curl -v http://demo-mb-broker.default.svc.cluster.local/ \
kubectl exec -ti curl -- curl -v http://demo-mb-broker.default.svc.cluster.local:8080 \
-X POST \
-H "Ce-Id: 1234-abcd" \
-H "Ce-Specversion: 1.0" \
Expand Down Expand Up @@ -107,7 +107,7 @@ kubectl delete -f https://raw.githubusercontent.com/triggermesh/triggermesh-core
Any event that pass the filter will try to be sent to the target, and upon failing will be delivered to the DLS.

```console
kubectl exec -ti curl -- curl -v http://demo-mb-broker.default.svc.cluster.local/ \
kubectl exec -ti curl -- curl -v http://demo-mb-broker.default.svc.cluster.local:8080 \
-X POST \
-H "Ce-Id: 1234-abcd" \
-H "Ce-Specversion: 1.0" \
Expand Down
8 changes: 4 additions & 4 deletions docs/getting-started-redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Wait until the RedisBroker is ready. It will inform in its status of the URL whe
kubectl get redisbroker demo

NAME URL AGE READY REASON
demo http://demo-rb-broker.default.svc.cluster.local 10s True
demo http://demo-rb-broker.default.svc.cluster.local:8080 10s True
```

To be able to use the broker we will create a Pod that allow us to send events inside the Kubernetes cluster.
Expand All @@ -35,7 +35,7 @@ kubectl apply -f https://raw.githubusercontent.com/triggermesh/triggermesh-core/
It is possible now to send events to the broker address by issuing curl commands. The response for ingested events must be an `HTTP 200` which means that the broker has received it and will try to deliver them to configured triggers.

```console
kubectl exec -ti curl -- curl -v http://demo-rb-broker.default.svc.cluster.local/ \
kubectl exec -ti curl -- curl -v http://demo-rb-broker.default.svc.cluster.local:8080 \
-X POST \
-H "Ce-Id: 1234-abcd" \
-H "Ce-Specversion: 1.0" \
Expand Down Expand Up @@ -67,7 +67,7 @@ The Trigger created above filters by CloudEvents containing `type: demo.type1` a
Using the `curl` Pod again we can send this CloudEvent to the broker.

```console
kubectl exec -ti curl -- curl -v http://demo-rb-broker.default.svc.cluster.local/ \
kubectl exec -ti curl -- curl -v http://demo-rb-broker.default.svc.cluster.local:8080 \
-X POST \
-H "Ce-Id: 1234-abcd" \
-H "Ce-Specversion: 1.0" \
Expand Down Expand Up @@ -107,7 +107,7 @@ kubectl delete -f https://raw.githubusercontent.com/triggermesh/triggermesh-core
Any event that pass the filter will try to be sent to the target, and upon failing will be delivered to the DLS.

```console
kubectl exec -ti curl -- curl -v http://demo-rb-broker.default.svc.cluster.local/ \
kubectl exec -ti curl -- curl -v http://demo-rb-broker.default.svc.cluster.local:8080 \
-X POST \
-H "Ce-Id: 1234-abcd" \
-H "Ce-Specversion: 1.0" \
Expand Down
4 changes: 2 additions & 2 deletions docs/observable-broker.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Wait until the RedisBroker is ready. It will inform in its status of the URL whe
kubectl get redisbroker metrics-demo

NAME URL AGE READY REASON
demo http://metrics-demo-rb-broker.default.svc.cluster.local 10s True
demo http://metrics-demo-rb-broker.default.svc.cluster.local:8080 10s True
```

Prometheus can be easily installed following one of this methods:
Expand Down Expand Up @@ -92,7 +92,7 @@ kubectl apply -f https://raw.githubusercontent.com/triggermesh/triggermesh-core/
It is possible now to send events to the broker address by issuing curl commands. The response for ingested events must be an `HTTP 200` which means that the broker has received it and will try to deliver them to configured triggers.

```console
kubectl exec -ti curl -- curl -v http://metrics-demo-rb-broker.default.svc.cluster.local/ \
kubectl exec -ti curl -- curl -v http://metrics-demo-rb-broker.default.svc.cluster.local:8080 \
-X POST \
-H "Ce-Id: 1234-abcd" \
-H "Ce-Specversion: 1.0" \
Expand Down
4 changes: 3 additions & 1 deletion pkg/reconciler/common/reconcile_broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ const (
brokerResourceSuffix = "broker"
brokerDeploymentComponentLabel = "broker-deployment"

defaultBrokerServicePort = 80
// ports must be >1024 to be able to bind them
// in unprivileged environments.
defaultBrokerServicePort = 8080
metricsServicePort = 9090
)

Expand Down