Fix CRI-O image name resolution for localhost images#21252
Fix CRI-O image name resolution for localhost images#21252elasticdotventures wants to merge 1 commit intokubernetes:masterfrom
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. DetailsInstructions 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:
DetailsInstructions 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. |
afbjorklund
left a comment
There was a problem hiding this comment.
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. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/ok-to-test |
|
kvm2 driver with docker runtime DetailsTimes 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 DetailsTimes 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 DetailsTimes 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.
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 |
|
@elasticdotventures: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions 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. |
|
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
Summary
Fixes CRI-O's inability to resolve locally built images when using podman driver, eliminating
InvalidImageNameerrors.Problem
When using
minikube start --driver=podman --container-runtime=cri-o, locally built images fail to deploy with:Root Cause
CRI-O's
registries.confonly searcheddocker.io, causing unqualified names to be incorrectly resolved.Solution
Configure CRI-O during setup to:
localhostfirst, thendocker.iofor unqualified nameslocalhostas insecure registryunqualified-search-registriesconfigurationImpact
Related Issues
Testing
Enables successful deployment of locally built images referenced by unqualified names in K8s manifests.