You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docker for Desktop allows the creation of a Kubernetes cluster.
I am trying to get kamel run to work in this setting but I'm hitting some blockers.
First step seems to be the need to create a registry using this command:
docker run -d -p 5000:5000 --restart=always --name registry registry:2
There are suggestions out there to use the actual docker.io registry but that is impractical because it requires the passing of the login credentials on the command line which is something that I would like to avoid.
Using the above created registry is desired and should work.
I suspect the --registry localhost:5000 option isn't right. For a Kubernetes pod, localhost is used for internal container-to-container communication, between the pod's containers. So even if that's a single-node cluster, localhost won't resolve to the node host, but rather be different for each pod.
Taking as an example Minikube, a Service exposes the registry pod, and that Service ClusterIP is used to reach the registry from within the Camel K builder.
Docker for Desktop allows the creation of a Kubernetes cluster.
I am trying to get
kamel run
to work in this setting but I'm hitting some blockers.First step seems to be the need to create a registry using this command:
There are suggestions out there to use the actual
docker.io
registry but that is impractical because it requires the passing of the login credentials on the command line which is something that I would like to avoid.Using the above created registry is desired and should work.
I install the camel-K operator like this:
The operator reaches running phase:
I then try to actually run one of the sample examples:
This leads to this:
But after a while the kit building fails:
I suspect it is a registry access problem but I'm not sure. Any ideas how to get this to work?
The text was updated successfully, but these errors were encountered: