You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You need to have knative-service and knative-eventing in your kubernetes:
kubectl get namespaces
Then, you should have a broker created named example-broker, if not you can create it with:
kn broker create example-broker
Steps:
Create the cloudevents player:
kn service create cloudevents-player -image quay.io/ruben/cloudevents-player:latest
Define a sink between the cloudevents player and the broker:
kn source binding create ce-player-binding --subject "Service:serving.knative.dev/v1:cloudevents-player" --sink broker:example-broker
Check that everything is ready:
kn trigger listkn source listkn service list
Test:
Go to your cloudevent player http page in your browser (you can check the endpoint with kn service list).
Send a message of type event.type2.
{"type": "type2", "users":[{"age":15,"name":"Luis"}]}
you should see that the cloudevent player receive three different events:
The same even of type2 that it sent.
An event of type3, created by ce-python after receive the event of type 2.