-
Notifications
You must be signed in to change notification settings - Fork 350
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
Camel K and Amazon EKS (Elastic Kubernetes Service) #2241
Comments
EKS should be working too. I have the feeling there must be some problem with the registry as for what I can understand, the |
Hey @squakez, I tried both variants with --registry-auth-username (+ --registry-auth-password) parameter and with --registry-secret. In the last one case, I created the secret before it. Which log line of camel-k-operator-784d84fdc9-nkc58.log indicates that there is a problem with pushing to the registry? The response of the |
I the log I can see the following lines with the
A successful image push would be like:
or maybe is the same pulling that is failing, if, by any chance there is no connectivity from/to the registry or any failure with that component. |
Do you think is it failed in the pulling base image moment? |
We do that through another project, Spectrum: https://github.com/container-tools/spectrum/blob/master/pkg/builder/build.go#L28 |
Thanks, @squakez. |
Not necessarily, as I managed to replicate the same behavior by setting fake registries. I've also managed to make it work the registry procedure locally. My best guess is that there is some network issue when trying to reach out docker registry from the EKS nodes, assuming that the credentials are correct. You can try a very simple execution to confirm your EKS has no network limitation by running a simple pod based on a docker.io image, ie create a file named hello.yaml:
If that is working as shown here, then, we probably have some issue to be further analized. |
Thanks for checking. I'll keep having a look and revert when I found something, feel free to keep checking on your side too and report here if any news. |
thanks a lot! |
Hi @squakez, I'm just wondering is it possible to pull the adoptopenjdk/openjdk11 image manually from the camel-k-operator pod using bash? |
Not sure if that alone would fix the problem. We should understand what exactly is failing during that operation in order to have a proper fix. |
I was just mentioning that if there is a way to pull image manually (not through kamel command) being inside the pod we could find out if there is a network problem (as example) of Amazon EKS environment or the actual problem related to the kamel. |
We tested that with the |
Hey @abogatov. I was trying to troubleshoot this problem and I've seen in the code that we store the error in the
In this example, I've simulated the error with a fake registry credentials. Let's look at your error, it may be finally tell us exactly what's going on. |
Hey @squakez, |
Try to specify |
I used this parameter as well.
this is the same as you have. @squakez, thanks a lot for your support! My next goals to try the Amason ECR repository instead docker hub and understand what is the camel-k-operator actually doing. |
I'm glad we sorted that out!
Yeah, I'd say it is more natural fit, and it would overcome the rate limitation you have on Docker Hub. If you are successful, feel free to contribute with some documentation, I'll be happy to support you with that too.
The docker registry is used to store the base images used for the
We have documentation in the Camel community website. You can look the camel k operator part, specifically. In any case, feel free to contact us if you have any further question. Also, if this problem has solved, feel free to close this issue :) |
Yes, this particular issue has been fixed, thanks again for the good effort! |
I think documentation about how to install on EKS would be useful on the website. |
I cannot see any documentation related. Sure, feel free to open a new issue or contribute to the documentation with any insight you may find. |
I'm trying to deploy a simple camel-k configuration and make it work with Amazon EKS.
What I did:
created a new Kubernetes cluster based on Amazon EKS
![image](https://user-images.githubusercontent.com/70779398/116229764-90eb3f00-a75f-11eb-919b-e75998c9d6f8.png)
installed Camel-K using the command
![image](https://user-images.githubusercontent.com/70779398/116232825-4b307580-a763-11eb-8437-25caab7902eb.png)
![image](https://user-images.githubusercontent.com/70779398/116229509-423da500-a75f-11eb-948f-ebad06c1a4e6.png)
kamel install --registry docker.io --organization <user id>--registry-secret <pass>
After this, I have a camel-k active pod
tried to run follow sample integration
using the command
kamel run Demo.java --dev
I have the next output after this command:
As well I got logs of camel pod
camel-k-operator-784d84fdc9-nkc58.log
does this message in the log says something?
I could not find any information in the log that can help me to understand the real problem of this error.
Could someone please help how I can get the details of the error occurring?
And the main question is it possible to use Camel-K with Amazon Elastic Kubernetes Service?
I have not just found any information in the documentation.
The text was updated successfully, but these errors were encountered: