Skip to content
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

Can't pull images from local registry #555

Open
MatthewHehir opened this issue Dec 3, 2024 · 2 comments · May be fixed by #556
Open

Can't pull images from local registry #555

MatthewHehir opened this issue Dec 3, 2024 · 2 comments · May be fixed by #556

Comments

@MatthewHehir
Copy link

MatthewHehir commented Dec 3, 2024

We're missing configuration from the /etc/containerd/config.toml to allow kind to pull images from the local registry spun up by --registry.

I'll open a PR to add the configuration as part of the containerdConfigPatches in kind.go.

The required configuration is:

    [plugins."io.containerd.grpc.v1.cri".registry.mirrors]
      [plugins."io.containerd.grpc.v1.cri".registry.mirrors."kind-registry:5000"]
        endpoint = ["http://kind-registry:5000"]
    [plugins."io.containerd.grpc.v1.cri".registry.configs]
      [plugins."io.containerd.grpc.v1.cri".registry.configs."kind-registry:5000".tls]
        insecure_skip_verify = true

This configuration is required, e.g., for Apache Camel-K to be used with kn quickstart. Without this configuration, no images can be pulled from the local registry.

@psschwei
Copy link
Contributor

psschwei commented Dec 3, 2024

Thanks for opening the issue. Do you know if this is something impacting all local registry use, or is it something specific when using Camel-K?

@MatthewHehir
Copy link
Author

MatthewHehir commented Dec 3, 2024

As I understand it, this should impact all local registry use*. The issue is the kind can't pull from the local registry without either A) certificate configuration, or B) telling it that the local registry uses HTTP and that we should skip TLS verification.

*where the user is using the registry set up via the --registry flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants