You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/01/12 16:38:25 UTC

[GitHub] [camel-k] doru1004 opened a new issue #1902: Installing Camel-K operator on Docker for Desktop with Kubernetes cluster enabled

doru1004 opened a new issue #1902:
URL: https://github.com/apache/camel-k/issues/1902


   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 install the camel-K operator like this:
   
   ```
   kamel install --registry localhost:5000 --registry-insecure --force
   ```
   
   The operator reaches running phase:
   ```
   camel-k-operator-57bbcbd6dc-rrz6b   1/1     Running   0          3m3s
   ```
   
   I then try to actually run one of the sample examples:
   
   ```
   kamel run examples/Sample.java
   ```
   
   This leads to this:
   ```
   > kubectl get integration
   sample      Building Kit   kit-bvusmmgm83jf9ujgr5fg
   ```
   
   But after a while the kit building fails:
   ```
   {"level":"info","ts":1610468378.0880353,"logger":"camel-k.controller.integrationkit","msg":"Reconciling IntegrationKit","request-namespace":"default","request-name":"kit-bvusmmgm83jf9ujgr5fg"}
   
   {"level":"info","ts":1610468378.0881057,"logger":"camel-k.controller.build","msg":"Invoking action error-recovery","request-namespace":"default","request-name":"kit-bvusmmgm83jf9ujgr5fg","api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-bvusmmgm83jf9ujgr5fg"}
   ```
   
   I suspect it is a registry access problem but I'm not sure. Any ideas how to get this to work?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] astefanutti edited a comment on issue #1902: Installing Camel-K operator on Docker for Desktop with Kubernetes cluster enabled

Posted by GitBox <gi...@apache.org>.
astefanutti edited a comment on issue #1902:
URL: https://github.com/apache/camel-k/issues/1902#issuecomment-766814544


   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.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] astefanutti edited a comment on issue #1902: Installing Camel-K operator on Docker for Desktop with Kubernetes cluster enabled

Posted by GitBox <gi...@apache.org>.
astefanutti edited a comment on issue #1902:
URL: https://github.com/apache/camel-k/issues/1902#issuecomment-766814544


   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.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] astefanutti closed issue #1902: Installing Camel-K operator on Docker for Desktop with Kubernetes cluster enabled

Posted by GitBox <gi...@apache.org>.
astefanutti closed issue #1902:
URL: https://github.com/apache/camel-k/issues/1902


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] astefanutti commented on issue #1902: Installing Camel-K operator on Docker for Desktop with Kubernetes cluster enabled

Posted by GitBox <gi...@apache.org>.
astefanutti commented on issue #1902:
URL: https://github.com/apache/camel-k/issues/1902#issuecomment-788741665


   I think it's been answered. Feel free to re-open if needed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] astefanutti commented on issue #1902: Installing Camel-K operator on Docker for Desktop with Kubernetes cluster enabled

Posted by GitBox <gi...@apache.org>.
astefanutti commented on issue #1902:
URL: https://github.com/apache/camel-k/issues/1902#issuecomment-766814544


   I suspect the `--registry localhost:5000` option isn't right. From a Kubernetes pod `localhost` is used for _internal_ container-to-container communication, between the pod's containers. 
   
   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.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] astefanutti commented on issue #1902: Installing Camel-K operator on Docker for Desktop with Kubernetes cluster enabled

Posted by GitBox <gi...@apache.org>.
astefanutti commented on issue #1902:
URL: https://github.com/apache/camel-k/issues/1902#issuecomment-766814544


   I suspect the `--registry localhost:5000` option isn't right. From a Kubernetes pod `localhost` is used for _internal_ container-to-container communication, between the pod's containers. 
   
   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.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org