Kubernetes: failed to create pod sandbox on a node
The runtime could not build the pause container or its network. Read the desc field: CNI plugin, pause image, disk, SELinux or a stale runtime config.

Introduction & Quick Summary
Warning FailedCreatePodSandBox 3m kubelet
failed to create pod sandbox: rpc error: code = Unknown desc =
failed to setup network for sandbox "6f1a...": plugin type="calico"
failed (add): error getting ClusterInformation: connection is unauthorizedThe kubelet asked the container runtime to create a sandbox — the pause container plus network namespace that every pod starts from — and the runtime refused. The pod stays in ContainerCreating or cycles through Pending, and no application container is ever started, so container-level debugging (kubectl logs) shows nothing.
The subsystem named in the desc field decides the owner of the failure:
plugin type="..."— the CNI plugin could not configure the network namespace.failed to get sandbox image— the pause image is missing and cannot be pulled.failed to create containerd task/failed to run sandbox— the runtime itself or its storage is broken.no such file or directoryon/opt/cni/bin— the CNI binaries are absent on that node.
| Message fragment | Broken layer | First command |
|---|---|---|
plugin type="calico" | CNI plugin | kubectl -n kube-system logs ds/calico-node |
cni config uninitialized | No CNI config on node | ls /etc/cni/net.d |
failed to get sandbox image | pause image | crictl images filtered for pause |
rpc error: code = DeadlineExceeded | Runtime hung | systemctl status containerd |
no space left on device | Node disk or inodes | df -h /var/lib/containerd |
failed to create task ... permission denied | SELinux or cgroups | ausearch -m avc -ts recent |
Core Mechanics, Signatures & Reproducible Setup
The Kubernetes pod lifecycle begins with a sandbox request over CRI. The kubelet calls RunPodSandbox, which makes the runtime create the pause container, set up namespaces, then invoke the CNI plugin chain to attach the network. Only after that does the kubelet create the application containers. Any failure in those three steps surfaces as FailedCreatePodSandBox.
Reproduce the diagnosis path on a broken node without touching the cluster:
# 1. What does the kubelet actually report?
kubectl describe pod web-0 -n demo | sed -n '/Events/,$p'
# 2. Which runtime is this node using?
kubectl get nodes -o wide
kubectl get node node-1 -o jsonpath='{.status.nodeInfo.containerRuntimeVersion}'
# 3. Can the CRI create a sandbox at all?
crictl info | head -40
crictl pods --state ready
crictl images | grep -i pauseA successful runtime reports a sandbox image, a network-ready status and a non-empty CNI configuration. The kubelet's view of the same state is available through its own API:
kubectl get --raw "/api/v1/nodes/node-1/proxy/configz" | head -40
journalctl -u kubelet -u containerd --since "15 min ago" --no-pager | tail -80The runtime configuration that matters for a bare containerd install lives in /etc/containerd/config.toml:
version = 3
[plugins.'io.containerd.cri.v1.images']
sandbox_image = "registry.k8s.io/pause:3.10"
[plugins.'io.containerd.cri.v1.runtime']
[plugins.'io.containerd.cri.v1.runtime'.containerd]
default_runtime_name = "runc"Container images and sandboxes share the same content store; a full store fails sandbox creation before any pod logic runs.
Key Comparison Table
| Runtime | Sandbox image setting | Config path | Common failure |
|---|---|---|---|
| containerd 1.x | plugins."io.containerd.grpc.v1.cri".sandbox_image | /etc/containerd/config.toml (version 2) | Wrong plugin key after upgrade |
| containerd 2.x | plugins.'io.containerd.cri.v1.images'.sandbox_image | same file, version 3 | Old key silently ignored |
| CRI-O | pause_image in /etc/crio/crio.conf | /etc/crio/crio.conf.d/ | pause not in allowed registry |
| dockershim | Removed in Kubernetes 1.24 | n/a | Node never registers |
| Symptom | Layer | Fix direction |
|---|---|---|
cni config uninitialized | CNI | Install or restore /etc/cni/net.d/*.conflist |
plugin ... connection is unauthorized | CNI control plane | Fix plugin credentials to the API server |
failed to get sandbox image | Registry | Preload pause or fix registry mirror |
no space left on device | Storage | Prune images, expand the volume |
permission denied on /var/lib/containerd | SELinux | Relabel or disable enforcing temporarily |
DeadlineExceeded | Runtime hang | Restart containerd and kubelet in order |
Practical Edge Cases, Error Fixes & Deep Dive Code Examples
Case 1: A node bootstrapped without a CNI plugin
kubeadm init deliberately installs no network plugin; nodes stay NotReady until one is applied, and any pod scheduled early fails sandbox creation. Confirm the absence rather than assuming a plugin is broken:
ls -l /etc/cni/net.d/
# empty or missing directory -> no plugin is configured
ls /opt/cni/bin/
# missing binaries -> plugin was never installed on this nodeInstall the CNI the cluster intends to use, matching the pod CIDR, and wait for the DaemonSet to become ready before retrying the pod:
kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/v3.30.0/manifests/calico.yaml
kubectl -n kube-system rollout status ds/calico-node --timeout=180s
kubectl delete pod web-0 -n demoCase 2: Pause image missing on an air-gapped node
The error names the exact reference, which is also the fix target:
failed to get sandbox image "registry.k8s.io/pause:3.9":
failed to pull image: rpc error: code = NotFoundPreload it into every node's runtime from a tarball, then confirm the digest matches the one the kubelet expects:
ctr -n k8s.io images import pause-3.9.tar
ctr -n k8s.io images ls | grep pauseChanging sandbox_image to a mirror requires a runtime restart, and that restart is itself a source of transient sandbox failures, so drain the node first:
kubectl drain node-2 --ignore-daemonsets --delete-emptydir-data
systemctl restart containerd kubelet
kubectl uncordon node-2Case 3: Disk full under /var/lib/containerd
df -h /var/lib/containerd
df -i /var/lib/containerd
du -sh /var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/* | sort -h | tailImage pruning inside the node is safe for running containers; pruning snapshots is not. Remove unused images first, then restart the runtime:
crictl rmi --prune
systemctl restart containerdIf inodes are exhausted, pruning images is the only fast relief; a node with millions of small files from unpacked layers cannot be fixed by deleting a few large images.
Case 4: RuntimeClass pointing at a missing handler
apiVersion: node.k8s.io/v1
kind: RuntimeClass
metadata:
name: gvisor
handler: runscIf runsc is not installed on the node, sandbox creation fails with no runtime for "runsc" is configured. Verify the handler exists before scheduling:
crictl info | grep -A2 runtimes
kubectl get runtimeclass gvisor -o yamlEither install and register the handler in the runtime config or remove the runtimeClassName from the workload; a RuntimeClass that exists as an object proves nothing about the node.
Case 5: containerd 2.x silently ignoring the old config
containerd 2.0 moved CRI settings under io.containerd.cri.v1.* and bumped the config version to 3. A node upgraded with the old version = 2 file keeps starting, but the CRI plugin ignores the deprecated keys, so a custom sandbox_image or registry mirror stops applying and pulls begin to fail.
containerd config dump | grep -i sandbox_image
containerd --versionRegenerate the config from the running version and merge local changes instead of hand-editing the old file:
containerd config default > /etc/containerd/config.toml.new
diff -u /etc/containerd/config.toml /etc/containerd/config.toml.new | head -80Case 6: SELinux on RHEL-family nodes
ausearch -m avc -ts recent | grep containerd | headA denial on /var/lib/containerd or on the CNI binary path blocks sandbox setup while the runtime service itself looks healthy. Relabel the paths or use the distribution's container-selinux package. Setting SELinux to permissive is a diagnostic step, not a fix; leaving it permissive removes the protection that would have caught the next misconfiguration.
Common Compilation/Runtime Mistakes & Version Gotchas
- Restarting only the kubelet. The kubelet reconnects to the same broken runtime and the same broken CNI. Restart the runtime first, then the kubelet, and check
crictl infobefore scheduling anything. - Dockershim assumptions. Guides that edit
/etc/docker/daemon.jsondo nothing on Kubernetes 1.24+, where the runtime is containerd or CRI-O. Confirm withnodeInfo.containerRuntimeVersionbefore following them. - cgroup v1 versus v2. Kubernetes 1.35 removes cgroup v1 support; a kubelet still configured for v1 on a v2-only host fails pod sandbox creation with cgroup errors that look like runtime failures. Check
stat -fc %T /sys/fs/cgroup. - Pause image tag drift. A cluster pinned to
pause:3.9keeps trying to pull it even after nodes cache3.10; alignsandbox_imageacross nodes or preload both. - Network policy agents are not CNI plugins. Installing only a policy engine leaves
/etc/cni/net.dempty, and pods fail at sandbox creation rather than at policy evaluation. - Node pressure hides the cause.
DiskPressureevicts pods, but a node that is 99% full may fail new sandboxes before eviction triggers. Checkdfon the runtime directory, not just the root filesystem.
For manifests, run YAML through the YAML validator before applying, since an indentation error in a CNI ConfigMap produces a plugin that loads and then refuses every request. Pod and service CIDRs belong in the CIDR calculator when you are confirming that the plugin's pool does not overlap the node network.
Primary references: Debugging Kubernetes nodes with crictl documents the runtime-level commands used above, and Container Runtime Interface explains the RunPodSandbox step where this failure occurs.
Official references
primary documentationThe Kubernetes documentation that defines the behaviour this guide explains.
Try matching browser tools
All toolsSmall utilities that fit Kubernetes work — they run entirely in this browser tab, so nothing you paste leaves your device.
Related Kubernetes guides
All Kubernetes guidesKubernetes 1.35: kubelet will not start on a cgroup v1 node
A 1.35 kubelet refuses a cgroup v1 host, and the removed pod-infra flag stops custom images. Check the kernel command line before the node pool.
Kubernetes: x509 certificate has expired or is not yet valid
kubeadm control plane certificates last one year. Renew them, restart the static pods, refresh kubeconfigs, and alert before the next expiry.
kubectl: metadata.resourceVersion: Invalid value: 0x0
The 0x0 error means an update carried no resourceVersion. Switch to apply or patch, or read the live object first, and keep versions out of Git.
no matches for kind in version: removed APIs and missing CRDs
kubectl cannot map the manifest to an endpoint. Either the API version was removed or the CRD is absent, and discovery tells you which.
More in Kubernetes
All Kubernetes guidesThe guides filed next to this one in Kubernetes, in library order.