Cannot load Knative configuration from file or env variable

27 views
Skip to first unread message

Roberto Fabrizi

unread,
Sep 20, 2021, 5:58:30 AMSep 20
to Knative Users
Dear friends,
I'm trying to follow this tutorial https://redhat-developer-demos.github.io/knative-tutorial/knative-tutorial/camelk/camel-k-basics.html to deploy my first Camel K integration on top of Knative serving. 

I've installed the CLI and the pre-requisites:

# kubectl version
Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.1", GitCommit:"632ed300f2c34f6d6d15ca4cef3d3c7073412212", GitTreeState:"clean", BuildDate:"2021-08-19T15:45:37Z", GoVersion:"go1.16.7", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.0", GitCommit:"c2b5237ccd9c0f1d600d3072634ca66cefdf272f", GitTreeState:"clean", BuildDate:"2021-08-04T17:57:25Z", GoVersion:"go1.16.6", Compiler:"gc", Platform:"linux/amd64"}

# kn version
Version:      v0.25.0
Build Date:   2021-08-11 05:11:11
Git Revision: 035150ec
Supported APIs:
* Serving
  - serving.knative.dev/v1 (knative-serving v0.25.0)
* Eventing
  - sources.knative.dev/v1 (knative-eventing v0.25.0)
  - eventing.knative.dev/v1 (knative-eventing v0.25.0)

# kamel version
Camel K Client 1.6.0

# kubectl get integrationplatform
NAME      PHASE
camel-k   Ready

# k get all
NAME                                         READY   STATUS    RESTARTS   AGE
pod/camel-k-operator-7bb969fb8b-df982        1/1     Running   0          9d
pod/knative-operator-65fc986fc4-l8n5k        1/1     Running   0          9d
pod/nfs-client-provisioner-b58d5db8b-ntf8f   1/1     Running   0          6d20h

NAME                          TYPE           CLUSTER-IP   EXTERNAL-IP                                         PORT(S)    AGE
service/kubernetes            ClusterIP      10.96.0.1    <none>                                              443/TCP    38d
service/messages-kn-channel   ExternalName   <none>       imc-dispatcher.knative-eventing.svc.cluster.local   <none>     7d22h
service/mysql                 ClusterIP      None         <none>                                              3306/TCP   18d
service/words-kn-channel      ExternalName   <none>       imc-dispatcher.knative-eventing.svc.cluster.local   <none>     7d22h

NAME                                     READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/camel-k-operator         1/1     1            1           9d
deployment.apps/knative-operator         1/1     1            1           9d
deployment.apps/nfs-client-provisioner   1/1     1            1           6d20h

NAME                                               DESIRED   CURRENT   READY   AGE
replicaset.apps/camel-k-operator-7bb969fb8b        1         1         1       9d
replicaset.apps/knative-operator-65fc986fc4        1         1         1       9d
replicaset.apps/nfs-client-provisioner-b58d5db8b   1         1         1       6d20h

NAME                                             URL                                                    AGE     READY   REASON


2021-09-20 09:22:33,389 INFO  [org.apa.cam.qua.cor.CamelBootstrapRecorder] (main) Bootstrap runtime: org.apache.camel.quarkus.main.CamelMainRuntime
2021-09-20 09:22:33,499 INFO  [org.apa.cam.k.lis.SourcesConfigurer] (main) Loading routes from: SourceDefinition{name='camel-k-embedded-flow', language='yaml', type='source', location='file:/etc/camel/sources/camel-k-embedded-flow.yaml', }
2021-09-20 09:22:33,759 ERROR [org.apa.cam.qua.mai.CamelMainRuntime] (main) Failed to start application: org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route(route1)[From[knative:endpoint/echoer] -> [Log[Got Mess... because of Failed to resolve endpoint: knative://endpoint/echoer due to: Cannot load Knative configuration from file or env variable

I've tried to look around on Google but I didn't find anything useful to understand why the Knative configuration is missing...

Did I skip a step?

Thank you,
Roberto

Mauricio Salatino

unread,
Sep 20, 2021, 6:17:57 AMSep 20
to Roberto Fabrizi, Knative Users
Hi Roberto, 
This seems to be more related to Camel K and also Red Hat docs, it might be better to reach out to their forums as well. 
I am sure that there are some devs from those projects here as well, but in case that you are looking for a faster solution, it might be a good idea to reach out there as well. 

Cheers


--
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/57e0df3c-f219-4e8d-aee8-4c4bc5d3d87an%40googlegroups.com.


--
 - Blog: http://salaboy.com
 - Twitter: http://twitter.com/salaboy
 
 - Mauricio "Salaboy" Salatino -

Roberto Fabrizi

unread,
Sep 20, 2021, 7:11:43 AMSep 20
to Knative Users
Ah ok I will, I guess that the error message  Failed to resolve endpoint: knative://endpoint/echoer due to: Cannot load Knative configuration from file or env variable got me offroad then, I'll try to ask over there but I have a strong feeling that they will say to ask over here :-(

Evan Anderson

unread,
Sep 20, 2021, 8:58:46 AMSep 20
to Roberto Fabrizi, Knative Users
This is a wild guess, but did you install Knative serving as well as eventing?

You can check this by running `kubectl api-resources` and looking for serving.knative.dev resources. (I didn't see any show up in your "get all", but you might not have any in your namespace.

--

Alek Slominski

unread,
Sep 20, 2021, 9:23:18 AMSep 20
to Roberto Fabrizi, Knative Users
Hi Roberto,

I could find one possibly related issues: https://github.com/apache/camel-k/issues/1871

Maybe it is worth reporting it to camel-k for the version of camel-k and knative you tested?

Are you in knative slack? It may be worth posting to #eventing-questions to see if somebody may have ideas?


Best,

Alek

--

Roberto Fabrizi

unread,
Sep 20, 2021, 10:55:58 AMSep 20
to Knative Users
Dear Evan,
I thought that the output of kn version was enough to double check, but in case it's not I went ahead and made this check too:

# kubectl api-resources | grep knative | grep eventing
brokers                                           eventing.knative.dev/v1                     true         Broker
eventtypes                                        eventing.knative.dev/v1beta1                true         EventType
triggers                                          eventing.knative.dev/v1                     true         Trigger
knativeeventings                                  operator.knative.dev/v1alpha1               true         KnativeEventing

It seems that eventing is also installed

Roberto Fabrizi

unread,
Sep 20, 2021, 10:59:10 AMSep 20
to Knative Users
I noticed that post but it was mentioned as fixed in 1.3 and I'm on 1.6! Anyways I'm joining the slack channel and try over there to see if they have any idea.

Evan Anderson

unread,
Sep 20, 2021, 2:23:27 PMSep 20
to Roberto Fabrizi, Knative Users
I'm not too familiar with Camel, but the "Route" mentioned in the error message made me think of the Knative Serving Route resource, which made me wonder if you had Serving installed as well as eventing.

From: knativ...@googlegroups.com <knativ...@googlegroups.com> on behalf of Roberto Fabrizi <r.fab...@gmail.com>
Sent: Monday, September 20, 2021 7:55 AM
To: Knative Users <knativ...@googlegroups.com>
Subject: Re: Cannot load Knative configuration from file or env variable
 

Roberto Fabrizi

unread,
Oct 1, 2021, 8:58:04 AMOct 1
to Knative Users
Sadly no one answered on the CamelK Gitter (https://gitter.im/apache/camel-k) :-(

Luca Burgazzoli

unread,
Oct 1, 2021, 9:02:42 AMOct 1
to Roberto Fabrizi, Knative Users
On Fri, Oct 1, 2021 at 2:58 PM Roberto Fabrizi <r.fab...@gmail.com> wrote:
Sadly no one answered on the CamelK Gitter (https://gitter.im/apache/camel-k) :-(

Gitter is not more active, can you ask your question on https://camel.zulipchat.com ?

Roland Huss

unread,
Oct 11, 2021, 6:35:55 AMOct 11
to Roberto Fabrizi, Knative Users
Hi Roberto,

"Route" here means a so-called Camel Route [1] which just describes the routem for integration data from an input component to one or more output components (so totally unconnected to any k8s/knative concept).

This is indeed a pure Camel-K internal issue, and please note that the Camel-K support channel has been moved to https://camel.zulipchat.com/ (as mentioned in the header of the Gitter chat). The Camel-K community is usually very responsive, so chances are good that you get an answer over there.

regards ...
... roland

On Fri, Oct 1, 2021 at 2:58 PM Roberto Fabrizi <r.fab...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages