-
Notifications
You must be signed in to change notification settings - Fork 5k
Fix CRI-O image name resolution for localhost images #21252
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
base: master
Are you sure you want to change the base?
Fix CRI-O image name resolution for localhost images #21252
Conversation
Hi @elasticdotventures. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Can one of the admins verify this patch? |
Configure CRI-O registries.conf to resolve unqualified image names to localhost first, then docker.io. This fixes InvalidImageName errors when deploying locally built images with podman + CRI-O runtime. Fixes kubernetes#21251
a642c85
to
b063560
Compare
Keywords which can automatically close issues and at(@) or hashtag(#) mentions are not allowed in commit messages. The list of commits with invalid commit messages:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable to fix the broken config, not sure if the localhost workaround is actually needed - but I don't think it hurts either
afaik, it will still search the images with the fake "localhost" registry too - just like docker will name any images with the "docker.io" (even if the image is never pushed there). Maybe it doesn't work with subdirectories/slashes in the name?
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: afbjorklund, elasticdotventures The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/ok-to-test |
kvm2 driver with docker runtime
Times for minikube start: 50.5s 47.5s 52.0s 50.2s 51.8s Times for minikube (PR 21252) ingress: 14.9s 15.4s 14.9s 15.5s 14.9s docker driver with docker runtime
Times for minikube start: 21.9s 21.1s 23.2s 21.5s 24.7s Times for minikube ingress: 13.7s 10.7s 12.3s 13.2s 13.2s docker driver with containerd runtime
Times for minikube start: 22.1s 22.2s 25.1s 22.1s 21.8s Times for minikube ingress: 22.7s 38.7s 22.7s 23.2s 22.8s |
@elasticdotventures can you plz check the KVM_Linux_CRIO test failures? they usually fail much lower this is failing 127/259 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this Breaks integraiton test, please check
Docker Crio
https://storage.googleapis.com/minikube-builds/logs/21252/40841/Docker_Linux_crio.html
KVM Crio
https://storage.googleapis.com/minikube-builds/logs/21252/40841/KVM_Linux_crio.html
on mastter it has only 9-10 test failing on master, but this PR 127 test fail
https://gopogh-server-tts3vkcpgq-uc.a.run.app/?env=KVM_Linux_crio
I just want to be clear - this presumes and is blocked by #21054 |
Summary
Fixes CRI-O's inability to resolve locally built images when using podman driver, eliminating
InvalidImageName
errors.Problem
When using
minikube start --driver=podman --container-runtime=cri-o
, locally built images fail to deploy with:Root Cause
CRI-O's
registries.conf
only searcheddocker.io
, causing unqualified names to be incorrectly resolved.Solution
Configure CRI-O during setup to:
localhost
first, thendocker.io
for unqualified nameslocalhost
as insecure registryunqualified-search-registries
configurationImpact
Related Issues
Testing
Enables successful deployment of locally built images referenced by unqualified names in K8s manifests.