-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
CRIO: add docker.io to the unqualified-search-registries
#19396
Comments
one might say we should not enable this to make users learn CRIO's default values,s since crio correctly advocates using the FQDN for less risk of spoofing... I am open to suggestions here wdyt @tstromberg |
When did this get broken? It was supposed to have that configuration, since Kubernetes defaults to docker.io If you install CRI-O from the kubernetes repository, it will have both docker.io (and quay.io) added by default. https://github.com/cri-o/packaging/blob/main/templates/latest/cri-o/bundle/registries.conf |
https://github.com/cri-o/cri-o/blob/main/install.md#validate-registries-in-registriesconf The new syntax was introduced in cri-o/cri-o@2e49302 but it should mean the same thing |
so is that not the default behaviour of CRIO ? we install crio in kicbase
so is that not the default config ? |
Maybe it changed in the later versions, kubernetes 1.24 is quite old at this point - the latest cri-o release is 1.30 EDIT: Right, in the old packages the registries.conf was not in It still had docker.io, though. (containers-common_100:1-22:all) # # An array of host[:port] registries to try when pulling an unqualified image, in order.
unqualified-search-registries = ["docker.io", "quay.io"] |
I tried to install the latest version and as seen before in crio/podman, their installation instructions seems abandoned for ubuntu, its interesting through years been same story ... |
You can see this blog post for the packaging changes, moving to Kubernetes: https://kubernetes.io/blog/2023/10/10/cri-o-community-package-infrastructure/ |
Current KIC image seem to have a non-working setup: #
# # An array of host[:port] registries to try when pulling an unqualified image, in order.
# unqualified-search-registries = ["example.com"]
# golang-github-containers-image: /etc/containers/registries.conf https://github.com/containers/image/blob/main/registries.conf |
This got broken here, with the upgrade from Ubuntu 20.04 to Ubuntu 24.04: commit c2bb950 (minikube v1.31.0) RUN export ARCH=$(dpkg --print-architecture | sed 's/ppc64el/ppc64le/') && \
- sh -c "echo 'deb https://downloadcontent.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list" && \
- curl -LO https://downloadcontent.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_20.04/Release.key && \
+ sh -c "echo 'deb https://downloadcontent.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_22.04/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list" && \
+ curl -LO https://downloadcontent.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_22.04/Release.key && \
apt-key add - < Release.key && \
if [ "$ARCH" != "ppc64le" ]; then \
- clean-install containers-common catatonit conmon containernetworking-plugins cri-tools podman-plugins crun; \
+ clean-install catatonit conmon cri-tools crun; \
else \
- clean-install containers-common conmon containernetworking-plugins crun; \
+ clean-install conmon crun; \
fi #
# # An array of host[:port] registries to try when pulling an unqualified image, in order.
unqualified-search-registries = ["registry.fedoraproject.org", "registry.access.redhat.com", "docker.io"]
# |
Here is the missing step, as hidden in the installlation documentation for cri-o: https://github.com/cri-o/cri-o/blob/main/install.md#validate-registries-in-registriesconf |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
CRIO fails when you deploy an image without docker.io prefix
for example
$ kubectl create deployment hello-minikube --image=kicbase/echo-server:1.0
deployment.apps/hello-minikube created
after adding this line
to the
sudo cat /etc/containers/registries.conf
it works
we need to figure out to the populate this file correctly for both kicbase and ISO in a unified way
The text was updated successfully, but these errors were encountered: