Kamel install command not working. Error: cannot find automatically a registry where to push images

5/20/2019

I'm new to the Apache Kamel. I have installed Kubernetes on master machine and then I downloaded the binary file "kamel" and placed in the path "/usr/bin". My versions are,

Camel K Client 0.3.3

My kubernetes master and kubeDNS is running fine. When I tried to install kamel on kubernetes cluster by using command "kamel install" as per the documentation, I'm getting the following error,

Error: cannot find automatically a registry where to push images

I don't know what does this new command does

"kamel install --cluster-setup"

After running the above command the response is like this,

Camel K cluster setup completed successfully

I tried to run a small integration script like

"kamel run hello.groovy --dev"

My groovy file code is,

from("timer:tick?period=3s")
.setBody().constant("Hello World from Camel K!!!")
.to("log:message")

but the pods are getting hanged, its status is pending.

camel-k-operator-587b579567-92xlk   0/1     Pending   0          26m

Can you please help me in this regard? Thanks a lot for your time.

References I used are, https://github.com/apache/camel

-- Shr4N
apache-camel
groovy
kubernetes

1 Answer

5/20/2019

You need to set the container registry where camel-k can publish/retrieve images, you can do it by editing camel-k's integration platform

oc edit integrationplatform camel-k

or upon installation

kamel install --registry=...
-- Luca Burgazzoli
Source: StackOverflow