-
Notifications
You must be signed in to change notification settings - Fork 7
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
Failed to create pod sandbox #28
Comments
Hi, if the runtimeclass is not installed, I suspect the installer did not finish properly. Can you check the logs of the installer? kubectl -n zeropod-system logs -l app.kubernetes.io/name=zeropod-node -c installer If you have no zeropod-node pod, your node might simply be missing the required label: |
The weird thing is, the runtimeClass is installed,
|
Oh, then the problem is somewhere else, I think containerd does not know the |
I already tried that, it didn't help |
Can you post the containerd config? cat /var/lib/rancher/k3s/agent/etc/containerd/config.toml
# and the template
cat /var/lib/rancher/k3s/agent/etc/containerd/config.toml.tmpl |
Containerd config# File generated by k3s. DO NOT EDIT. Use config.toml.tmpl instead.
version = 2
[plugins."io.containerd.internal.v1.opt"]
path = "/var/lib/rancher/k3s/agent/containerd"
[plugins."io.containerd.grpc.v1.cri"]
stream_server_address = "127.0.0.1"
stream_server_port = "10010"
enable_selinux = false
enable_unprivileged_ports = true
enable_unprivileged_icmp = true
sandbox_image = "rancher/mirrored-pause:3.6"
[plugins."io.containerd.grpc.v1.cri".containerd]
snapshotter = "overlayfs"
disable_snapshot_annotations = true
[plugins."io.containerd.grpc.v1.cri".cni]
bin_dir = "/var/lib/rancher/k3s/data/bf3548384eaabb3435bf08112f1b0cba1afc5add6a6f2f2372aa2906a598fd04/bin"
conf_dir = "/var/lib/rancher/k3s/agent/etc/cni/net.d"
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
runtime_type = "io.containerd.runc.v2"
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
SystemdCgroup = true |
I forgot to configure -runtime=k3s, I just fixed that but it still doesn't create the .tmpl file |
another restart of k3s fixed it, the nginx example runs now but it never scales down |
Closing this, continuing the other issue in #29 |
Trying to use zeropod on k3s, kubernetes version v1.27.7
getting this error:
FailedCreatePodSandBox 13s (x11 over 2m20s) kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox runtime: no runtime for "zeropod" is configured
Kubernetes Manifest (click to reveal)
The text was updated successfully, but these errors were encountered: