You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix CRI-O image name resolution for localhost images
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#21251
klog.Warningf("unable to remove /etc/cni/net.mk directory: %v", err)
90
90
}
91
91
92
+
// configure registries for proper local image resolution (fixes #21251)
93
+
// this ensures CRI-O can resolve locally built images (stored with localhost/ prefix)
94
+
// while maintaining compatibility with Docker runtime behavior
95
+
iferr:=configureRegistries(cr); err!=nil {
96
+
returnerrors.Wrap(err, "configuring registries")
97
+
}
98
+
92
99
// add 'net.ipv4.ip_unprivileged_port_start=0' sysctl so that containers that run with non-root user can bind to otherwise privilege ports (like coredns v1.11.0+)
93
100
// note: 'net.ipv4.ip_unprivileged_port_start' sysctl was marked as safe since Kubernetes v1.22 (Aug 4, 2021) (ref: https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.22.md#feature-9)
0 commit comments