What does docker daemon do in kubernetes after container(s) is started?

11/12/2018

I see that docker daemon use a lot of CPU. As I understand the kubelet and the dockerd communicate with each other to maintain the state of the cluster. But does dockerd for some reason do extra runtime work after containers are started that would spike CPU? To get information to report to kubelet?

-- lucidquiet
docker
kubernetes

1 Answer

11/12/2018

But does dockerd for some reason do extra runtime work after containers are started that would spike CPU?

Not really unless you have another container or process constantly calling the docker API or running a docker command from the CLI.

The kubelet talks to the docker daemon through a docker shim to do everything that it needs to run containers, so I would check if the kubelet is doing some extra works, maybe scheduling and then evicting/stopping containers.

-- Rico
Source: StackOverflow