KafkaSource - no matches for kind "KafkaSource"

234 views
Skip to first unread message

Shaun Ryan

unread,
Aug 23, 2020, 1:14:44 PM8/23/20
to Knative Users
Hi Folks

I tried to use the KafkaSource but I can't deploy it (on v 0.16). Using the manual install not the operator. Is it too early to get this going?

This is the error:
error: unable to recognize "event-source.yaml": no matches for kind "KafkaSource" in version "sources.knative.dev/v1beta1"

This is the yaml. Just lifted it from the examples and changed the sink to be my defaut broker.

kind: KafkaSource
metadata:
name: kafka-source
spec:
consumerGroup: knative-group
bootstrapServers:
- mycluster-kafka-bootstrap.kafka:9092 # note the kafka namespace
topics:
- mytopic
sink:
ref:
kind: Broker
name: default

Matt Moore

unread,
Aug 23, 2020, 2:40:28 PM8/23/20
to Shaun Ryan, Knative Users
I believe KafkaSource went beta in 0.17: https://github.com/knative/eventing-contrib/releases/tag/v0.17.0

--
You received this message because you are subscribed to the Google Groups "Knative Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to knative-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/knative-users/f285b085-5bb0-4bf6-9265-d72455d1e29an%40googlegroups.com.


--
Matthew Moore

"Beware of bugs in the above code; I have only proved it correct, not tried it."
-- Knuth

Shaun Ryan

unread,
Aug 23, 2020, 3:40:43 PM8/23/20
to Knative Users
Oki doke thanks

Shaun Ryan

unread,
Aug 23, 2020, 4:29:30 PM8/23/20
to Knative Users
Same issue on 0.17... will dig deeper and raise in github if need be.

Following this...

Matthias Wessendorf

unread,
Aug 24, 2020, 3:38:00 AM8/24/20
to Shaun Ryan, Knative Users
Hello, Shaun,

using this setup:
https://github.com/matzew/kn-box

I am able to create the Source, like:

```
apiVersion: sources.knative.dev/v1beta1
kind: KafkaSource
metadata:
name: kafka-source
spec:
bootstrapServers:
- my-cluster-kafka-bootstrap.kafka:9092
topics:
- my-topic
sink:
ref:
apiVersion: serving.knative.dev/v1
kind: Service
name: event-display
```
> To view this discussion on the web visit https://groups.google.com/d/msgid/knative-users/86a760fb-4bf4-44b1-b34c-3cea024d9b3an%40googlegroups.com.



--
Matthias Wessendorf

github: https://github.com/matzew
twitter: http://twitter.com/mwessendorf

Shaun Ryan

unread,
Aug 24, 2020, 3:41:40 AM8/24/20
to Knative Users
Thank you. I'll take a look.

Shaun Ryan

unread,
Aug 24, 2020, 4:37:03 AM8/24/20
to Knative Users
Ah! Facepalm... helps if I install the CRD!
Thanks for responding!

Shaun Ryan

unread,
Aug 24, 2020, 4:54:03 AM8/24/20
to Knative Users
We have some confusion on our project... We've just switched to trying out the operator... Is installing the optional CRD's manually still the way to go or should they be done through the operator? We have some resources failing, not sure if it's our cluster setup or we're not installing the CRDs correctly.

Thanks

Matthias Wessendorf

unread,
Aug 24, 2020, 5:17:16 AM8/24/20
to Shaun Ryan, Knative Users
The operator does not yet support installing "contrib" components

I think there is this issue for it:
https://github.com/knative/operator/issues/206
> To view this discussion on the web visit https://groups.google.com/d/msgid/knative-users/fc1d2c87-67a3-4b9f-8c7f-a0fc36bbf598n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages