-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Pods are not initializing for Che and keycloak kubernetes #13838
Comments
not sure if #13625 is related to this one, title sounds the same but the outcome and issue details look different? Not sure |
I think I was able to reproduce this issue. Could you please take a look at logs of the init containers? Like this: So in my case it was:
which seems pretty wrong.... |
Yes, I see the same as you:
|
btw @rhopp, this is not only for the keycloak container, but I can imagine it would happening with the Che container as well. Reason I believe this is because I tried to setup che & postgres containers only using |
Updated description with the |
@skabashnyuk
I did some research and came up with this answer: https://stackoverflow.com/a/53308881/5224768 So I did try to change the image from
So this put me on a track where there is nothing wrong with the |
@skabashnyuk tried this image gempesaw/curl-jq from https://hub.docker.com/r/gempesaw/curl-jq
And now it's pulling the image If you see what I did is right, or you have any recommendations, pls let me know and I will create a branch and commit the changes after i test it locally... |
|
@skabashnyuk sure, I could try, i'll let you know what happened, btw keycloak is deployed now, i'm waiting for che, shall I cancel testing this change? Should I also wait tilll tomorrow to use https://github.com/che-incubator/chectl ? |
@skabashnyuk : I tested the
Seems related to che-incubator/chectl#108 as my helm version is |
I am using snap for helm client and i'm not sure if it supports downgrading and i'm not sure if it's the client only issue or both client and server? |
hmm, but it's also actually right, there are no che releases? Isn't that what it supposed to check? |
@l0rd @benoitf @davidfestal have you seen that issue with helm && chectl before. Can you assist? |
@SDAdham what version of chectl are you using? This looks related to che-incubator/chectl#18 that has been fixed a couple of weeks ago. If that doesn't work plese copy/paste the output of And as a workaround, if you are ok to delete your local Che instance and all its data: chectl server:delete
chectl server:start --installer=helm --multiuser --platform=k8s --tls --self-signed-cert |
@l0rd I am using the latest version of chectl https://github.com/che-incubator/chectl/releases (freshly installed today) I don't have any che installed cuz I can't install it at all in the first place and even though all installations are usually failing, I run Here is the output of
Edit:
|
New update: After downloading another release of today
|
@l0rd @skabashnyuk @benoitf no progress at all, we're back to the original issue |
According to @benoitf : it seems that it could be related to k8s version |
@SDAdham at this moment on clean k8s with |
@skabashnyuk yes, that's correct. And everything is done as per the instructions and documentations, the only thing that's done that is not documented but with help of @benoitf is installing the cert-manager with the following:
So I can bypass the issue which required me to manually install the cert-manager:
|
can you try the same without |
@skabashnyuk I can do that, but I don't really think that that's going to make any difference as the whole problem is that the commands are undefined, this step you're asking for is going further away from the actual problem. Please refer to this comment #13838 (comment) |
do you have internet available for you k8s cluster? I see no other reasons why init container command might fail. |
issue on keycloak is due to the latest changes on keycloak image and in helm templates init container is trying to install curl and jq and receive
so further commands are not working I didn't have these as I was using cached helm templates with latest image |
Thanks @benoitf , So this explains why the issue is rising but it wasn't seen? And is that still related to k8s |
also, i'm not sure how can I see:
|
@skabashnyuk I tried your suggestion and no difference like I mentioned. @benoitf I did try to see if I have the same issue that would be matching the issue you pointed out but turns out no:
|
@SDAdham and use
as a workaround (it's using a jq/curl image and not install it at runtime) |
@benoitf it looks like we can split this issue in 2:
Is that correct? |
@l0rd yes but cert-manager doc is documented in the "remote install of che" |
Makes sense |
@benoitf As per this comment: #13838 (comment) and this comment: #13838 (comment) |
@SDAdham drop the helm cache |
How can I drop the helm cache? I always use this >> |
@SDAdham I'm going to ask @mkuznyetsov to handle this task. The plan is to create an alpine based image under eclipse org that we can use as init container. |
@skabashnyuk looks about good plan, ill be around if any help needed, id prefer to wait for chectl as this is the most prefered/supported way to go as im looking forward for a production server |
Here we are using Rancher 2 where chectl isn't useful for us, we can just launch the Helm chart via the GUI so it would be good to see chectl not made a required element where bugs like this are fixed (which I'm sure will be the case, just wanted to highlight that there are users out there deploying on K8s in different ways). |
@davidwindell i do agree but setting a standard is the best way to move, this way u know whats coming for u but if u do something different then ur on ur own, thats why consistency always succeeds. I already solved the issue by a different image, and i can go with this. But i prefer to stick to the solution that will be provided to this issue. Deploying with helm was a way for me to go with initially but since chectl is working, i prefer that more |
@skabashnyuk @nickboldt : can we add this issue to the mile stone of V7.0, I'm not sure if we should release 7.0 with issues in deployment? |
@SDAdham actually #13870 is already in 7.0.0. If you are ok we should close this issue in favor of the #13870 @davidwindell In this case the fix consist in modifying the permissions in a container image folder. Every installer will benefit of it. |
@l0rd, if nothing is needed from my side. Please feel free to close this one. Ill track the other issue on when its resolved |
Describe the bug
keycloak and che are not initializing, they keep in the following stat:
In the meanwhile, if I am deploying a single-user che on the very same kubernetes environment, it works perfectly!!
Che version
6.19.0
,6.19.2
,7.0.0-rc-3.x
,6.19.5
Steps to reproduce
Expected behavior
Pods should be initialized and che environment should be deployed
Runtime
kubectl version
)oc version
)minikube version
andkubectl version
)minishift version
andoc version
)docker version
andkubectl version
)Screenshots
Screenshots of one of the pods:
Events of the entire namespace
Describe of one of the pods:
validated postgres readiness:
And also running the following command from it's pod's exec:
Installation method
In either of the pods che or keycloak logs, it would have a single log line with a reference to itself that it's waiting to be initialized, example:
Environment
Additional context
The text was updated successfully, but these errors were encountered: