-
Notifications
You must be signed in to change notification settings - Fork 38
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
CachedImage not created #452
Comments
Hello, I would need more information in order to help you. Could you please provide:
Thanks for reporting! |
Ah thank you, I will enable the higher verbosity and try to reproduce in a test cluster in the next few days. |
Hi just want to circle back here, sorry for the delay! This continues to happen to us occasionally but when it does happen, enabling debug logs restarts the controllers and as soon as they restart then they notice there should be a CachedImage and create it. So I guess we could try leaving it in debug mode for a while to try to reproduce but that might be too noisy. The latest time it was just a simple nginx image that was failing. When this happens, the pod goes into ImagePullBackOff because the rewrite happens to add
In terms of custom stuff in our helm values, I don't think there's anything too crazy:
|
Hello, Something that could help a lot would be to have the yaml of a pod that have this issue (a container rewritten but with the corresponding CachedImage not being created). With this I may not even need logs. What could happen is that some annotations that should be added by our controller are missing, and thus the CachedImage is not created, event if the image is rewritten. I'm also thinking, did you change the |
aha thanks, I will grab this if I see the issue happen again!
That is an interesting thought, but no we haven't changed either of those when the issue happened. We have had ECR public added to the accepted images for weeks when this last problem happened pulling the nginx image from ECR public (that was the first time we had tried to pull that image). Thanks for the response, will keep you updated if this happens again and grab that pod yaml! |
Hi we just had this come up again. I was able to get the DEBUG controller logs: https://gist.github.com/bpoland/604a1ed998e12a4b57e5d3a7dd4b0891 I also grabbed the pod yaml when the issue was happening: https://gist.github.com/bpoland/093f78dad60410597d362dc261ea9861 I redacted both but the image that was not being cached is This time, restarting the kuik controllers was not enough to get things working again. I had to manually create the Please let me know if that's helpful, thank you! |
Hi, I've tried to create this pod in my dev cluster. But it successfully created required images. If you try to re-create this pod (with redacted images or not, it should not matter), are you able to reproduce the issue? |
Yes, trying to create multiple pods with the same new image has the same problem until I manually create the Repository and CachedImage resources, or sometimes restarting the kuik controllers is enough to get it fixed. What other info can I grab the next time this happens to help troubleshoot? Thank you! |
Sorry, I think I wasn't clear enough. What I meant was if you: kubectl create ns redacted-namespace-1
curl https://gist.githubusercontent.com/bpoland/093f78dad60410597d362dc261ea9861/raw/6142f34d8ad71969dc8261ee1f23a0bfddcddcf7/badpod.yaml | kubectl apply -f - Does the 3 images This is to understand if the issue really is with the spec of the pod (which seems to be the case since restarting kuik controllers didn't fix the issue). In my case, when I specifically apply the above yaml, images get created. If in your setup it is not the case, it may come from a difference in our setups (different k8s version, kuik version, cloud provider or any other). By the way, what versions of kuik and k8s are you using? Is there anything specific to your setup that could cause that? |
Ah okay, I will try that the next time we see the issue. My guess is that other similar pods using the same new image will not trigger the cachedImage resource to be created but I will let you know. We are on k8s 1.29 (soon to be 1.30) and kuik 1.12.0. The only potentially weird configuration is that we specify |
Ok thanks. Yeah I saw the |
Hey there, I have a weird situation where one of my images was getting rewritten but no CachedImage or Repository were getting automatically created for it. I have looked through the controller logs for any hints but am not seeing anything obvious. The CachedImage and Repository are being created for other images in the same repo but not this one.
The only thing I could think of is that the problematic image name and tag are longer than others, so I tried manually creating the Cachedimage and Repository to see if I got any errors, but it worked fine and now my Pods are starting.
Has anyone seen anything like this before? Are there specific log lines I can look at in the controller log to try to troubleshoot? Thank you!
The text was updated successfully, but these errors were encountered: