-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
kind create cluster failed with mounted containerd config #3733
Comments
/remove-kind bug You are running a very old version of kind. Please upgrade and try again. If things still fail with a more recent version, then proceed with more troubleshooting: Please use the Some more helpful things here: https://kind.sigs.k8s.io/docs/user/known-issues/#troubleshooting-kind I do notice this machine is running cgroupv1. It's highly recommended to switch over to cgroupv2. |
I have now upgraded the kind version and switched to cgroupv2. The issue still persists. The detailed log files have been uploaded. Thank you for your help. |
try first a |
and the containerd/config.toml is: # explicitly use v2 config format
version = 2
[debug]
level = "debug"
[plugins."io.containerd.grpc.v1.cri".containerd]
# save disk space when using a single snapshotter
discard_unpacked_layers = false
# explicitly use default snapshotter so we can set it in entrypoint
snapshotter = "overlayfs"
# explicit default here, as we're configuring it below
default_runtime_name = "runc"
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
# set default runtime handler to v2, which has a per-pod shim
runtime_type = "io.containerd.runc.v2"
# Setup a runtime with the magic name ("test-handler") used for Kubernetes
# runtime class tests ...
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.test-handler]
runtime_type = "io.containerd.runc.v2"
[plugins."io.containerd.grpc.v1.cri"]
# use fixed sandbox image
sandbox_image = "registry.k8s.io/pause:3.5"
# allow hugepages controller to be missing
# see https://github.com/containerd/cri/pull/1501
tolerate_missing_hugepages_controller = true
# restrict_oom_score_adj needs to be true when running inside UserNS (rootless)
restrict_oom_score_adj = false
# Mirrors use d7y.io instead of docker.io.
# when using docker.io to generate an endpoint, https://index.docker.io will be returned by default.
# https://github.com/containerd/containerd/blob/main/pkg/cri/server/image_pull.go#L456
# https://github.com/containerd/containerd/blob/main/remotes/docker/resolver.go#L121
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."d7y.io"]
endpoint = ["http://127.0.0.1:65001"] |
|
so, it is your containerd config what is causing the problem 😄 |
It looks like you're just trying to configure a mirror, for a different more future proof and reliable approach to that, see: https://kind.sigs.k8s.io/docs/user/local-registry/ |
this is probably the error, and why you should not overwrite the entire containerd config file, the pause version used depends on the node image, as it is pre-loaded into the node image to avoid needing to pull it. |
By commenting: |
I recommend #3733 (comment) instead of overriding the entire file |
Overriding the entire containerd config is likely to break things again in the future. See the suggestion above. |
Bug Report
What happened:
Configuration File (
config.yaml
):Cluster Creation Command:
Google Document with More Information
Docker Information:
Output:
Kind Version:
Output:
The text was updated successfully, but these errors were encountered: