Closed bennidhamma closed 3 years ago
Which kubernetes cluster are you using? Minikube?
I was able to reproduce.
❯ kubectl get broker default-broker
NAME URL AGE READY REASON
default-broker 44s
You need to install the mt-channel-broker.yaml
Then I install the broker
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.26.1/mt-channel-broker.yaml
Then do another get
❯ kubectl get broker default-broker
NAME URL AGE READY REASON
default-broker http://broker-ingress.knative-eventing.svc.cluster.local/default/default-broker 89s True
I was able to get it working based on the tutorials that I have here https://github.com/csantanapr/knative-kind/blob/master/04-eventing.sh
Also, you don't need serving if you are only using eventing.
export KNATIVE_EVENTING_VERSION=0.26.1
kubectl apply -f https://github.com/knative/eventing/releases/download/v$KNATIVE_EVENTING_VERSION/eventing-crds.yaml
kubectl apply -f https://github.com/knative/eventing/releases/download/v$KNATIVE_EVENTING_VERSION/eventing-core.yaml
kubectl apply -f https://github.com/knative/eventing/releases/download/v$KNATIVE_EVENTING_VERSION/in-memory-channel.yaml
kubectl apply -f https://github.com/knative/eventing/releases/download/v$KNATIVE_EVENTING_VERSION/mt-channel-broker.yaml
sleep 10
kn broker create default-broker
kn broker list
output
NAME URL AGE CONDITIONS READY REASON
default-broker http://broker-ingress.knative-eventing.svc.cluster.local/default/default-broker 6m53s 5 OK / 5 True
@bennidhamma thank you for opening the issue, let us know if the info fixes your issue.
Awesome. This is so helpful. Will try soonest.
On Wed, Oct 27, 2021, 17:33 Carlos Santana @.***> wrote:
@bennidhamma https://github.com/bennidhamma thank you for opening the issue, let us know if the info fixes your issue.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/knative/eventing/issues/5852#issuecomment-953407328, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACLUMAGYM7RO7RRZKPASTLUJCK5PANCNFSM5G3P52SQ .
looks great. thank you @csantanapr!
@csantanapr this has come up a few times in the past, wondering if we might be able to add a section about this in the docs that would highlight this a bit more?
I went to create an issue but took a look and there was one already, so added this as another datapoint there. Thanks all and sorry for the troubles :(
@vaikas How did you handled the DNS part ? Now I can get the URL as well, but seems I cannot do anything with it.
Well, typically I just use cluster local since I really don't want to accept just any rando events from the Internet :)
There should be some samples in the knative.dev website, here's an example that hopefully shows how to:
Wires things up (via Trigger)
Depending on which namespaces, etc. you deployed things, you might need to tweak the samples of course :)
@vaikas Thanks a lot. I'm going to try it again, I might have done something wrong.
@vaikas Did you have to use anything for networking? even locally, like Kourier for example.
@soaand01
@vaikas How did you handled the DNS part ? Now I can get the URL as well, but seems I cannot do anything with it.
If you want the URL to the broker to be external you can use what we use in quickstart here using DomainMapping https://github.com/csantanapr/knative-kind/blob/master/05-eventing-samples.sh#L61-L83 But you need to install serving and domain mapping.
# Exposing broker externally using Knative Domain Mapping
kubectl apply -f - <<EOF
apiVersion: networking.internal.knative.dev/v1alpha1
kind: ClusterDomainClaim
metadata:
name: broker-ingress.knative-eventing.127.0.0.1.nip.io
spec:
namespace: knative-eventing
EOF
kubectl -n knative-eventing apply -f - << EOF
apiVersion: serving.knative.dev/v1alpha1
kind: DomainMapping
metadata:
name: broker-ingress.knative-eventing.127.0.0.1.nip.io
spec:
ref:
name: broker-ingress
kind: Service
apiVersion: v1
EOF
sleep 2
kubectl wait -n knative-eventing DomainMapping broker-ingress.knative-eventing.127.0.0.1.nip.io --timeout=-1s --for=condition=Ready > /dev/null
@csantanapr I will try it now.
@csantanapr Is the kourier really necessary to make it work ?
@soaand01 Is using domain mapping and serving to make the service external thru the serving network plugin in my example I use Kourier but you can use any of the serving net-* like istio, contour, etc
Expected Behavior
When I create a broker and look at it with
kn broker list
, I would expect it to look something like this:Actual Behavior
Instead, it looks like this:
Steps to Reproduce the Problem
kn broker create default-broker
Additional Info
channel.yaml:
broker describe:
Groups thread: https://groups.google.com/g/knative-users/c/k_d6zbD2xZc
Nothing suspicious looking in logs output from imc-dispatcher or imc-controller in the knative-eventing namespace, but I'm happy to attach those logs if that seems useful.