Why I can't see 'kubelet' container on crictl ps results(containerd)

628 Views Asked by At

I'm operating simple kubernetes cluster(CRI is containerd). In the cluster, "crictl ps" command doesn't return "kubelet" container.

In another kubernetes cluster(CRI is docker), "docker ps" command returns "kubelet" container.

What is the difference between these two commands(docker ps / crictl ps)?

Is there any way to see "kubelet" container by "crictl ps" command?

1

There are 1 best solutions below

0
On

crictl isn't a replacement for docker. The result of crictl ps doesn't include some containers (e.g. pause).

Try ctr -n k8s.io c ls to see all the containers running on k8s with containerd.