Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kamel install not working - Error: cannot find automatically a registry where to push images #674

Closed
tshravan86 opened this issue May 21, 2019 · 7 comments

Comments

@tshravan86
Copy link

Hi,

I have installed kubernetes on ec2 instance as master node. Kubernetes is running when, but when I tried following your tutorial I'm getting the following error,

Error: cannot find automatically a registry where to push images

I'm confused what registry I have to pass with the command

kame install --registry "string"

When I pass any value for registry its not throwing error, but when I run hello.groovy, kamel is getting hanged after

Integration 'hello' created

Can you please help me out here? Thanks a lot for your time.

@ShravanGeek
Copy link

ShravanGeek commented Jun 12, 2019

Hi team. I have installed plain Kubernetes with single master cluster configuration. After storing kamel binary into "/usr/local/bin", I was able to run kamel commands. I did the "kamel install --cluster-setup" and the setup is fine. Then when I was trying to run the command "kamel install", I'm getting the following error.

root@camelk:~# kamel install
Error: cannot find automatically a registry where to push images
Usage:
  kamel install [flags]

Flags:
      --base-image string          Set the base image used to run integrations
      --build-strategy string      Set the build strategy
      --build-timeout string       Set how long the build process can last
      --camel-version string       Set the camel version
      --cluster-setup              Execute cluster-wide operations only (may require admin rights)
      --context strings            Add a camel context to build at startup, by default all known contexts are built
      --example                    Install example integration
  -h, --help                       help for install
      --local-repository string    Location of the local maven repository
      --maven-repository strings   Add a maven repository
      --maven-settings string      Configure the source of the maven settings (configmap|secret:name[/key])
      --operator-image string      Set the operator image used for the operator deployment
      --organization string        A organization on the Docker registry that can be used to publish images
  -o, --output string              Output format. One of: json|yaml
  -p, --property strings           Add a camel property
      --registry string            A Docker registry that can be used to publish images
      --registry-insecure          Configure to configure registry access in insecure mode or not
      --registry-secret string     A secret used to push/pull images to the Docker registry
      --runtime-version string     Set the camel-k runtime version
      --skip-cluster-setup         Skip the cluster-setup phase
      --skip-operator-setup        Do not install the operator in the namespace (in case there's a global one)
  -w, --wait                       Waits for the platform to be running

Global Flags:
      --config string      Path to the config file to use for CLI requests
  -n, --namespace string   Namespace to use for all operations

Error: cannot find automatically a registry where to push images

Could you please help me out here? Have I missed any configurations? I'm in need of help. Thanks a lot for your time.

@jetztgradnet
Copy link

I just had the same issue when running kamel 1.0.0-M1 with my local Docker Desktop and minikube.
I got this resolved in minikube by enabling the registry running within minikube:
minikube addons enable registry
As this registry is not secure (i.e. either no https or self-signed certificate) you need to tell kamel to allow accessing this insecure registry:
kamel install --registry-insecure

@lburgazzoli
Copy link
Contributor

@tshravan86 is this still an issue ?

@lburgazzoli lburgazzoli added the status/waiting-for-feedback Needs some feedback label Jun 5, 2020
@rahgadda
Copy link

rahgadda commented Jun 23, 2020

Hi Team,

I am also facing the same issue.

kamel install --cluster-setup --registry-insecure 10.40.65.121:5000
kamel init hello.java
kamel run .\hello.java --dev

image

Nothings updated in the registry as well
image

Nothings is getting displayed in logs
image

No Pod is created
image

kamel get is displaying below
image

Please suggest.

@lburgazzoli
Copy link
Contributor

@rahgadda not very sure it is the same issue, mind opening a enw one with some more details ?

  • type of kubernetes cluster
  • kamel k version
  • logs from operator

@rahgadda
Copy link

rahgadda commented Jun 23, 2020

@lburgazzoli , Raised issue-1552

@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity.
Remove stale label or comment or this will be closed in 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants