Image garbage collection failed: unable to find data for container /

6/20/2017

I know this question has been asked (here), but it's not help for me. I will describe my problem in details.

I installed my kubernetes cluster on CentOS 7 vm os, etcd and kubernetes versions are:

kubernetes v1.6.6
etcd       v3.1.9

When I start kubelet, I got these errors:

E0620 09:57:38.178381 30625 kubelet.go:1165] Image garbage collection failed: unable to find data for container / E0620 09:57:38.203274 30625 factory.go:305] devicemapper filesystem stats will not be reported: usage of thin_ls is disabled to preserve iops

On the kube-master vm, I check the node states and got these results:

$ kubectl get nodes
NAME        STATUS    AGE       VERSION
k8s-node1   Ready     1h        v1.6.6
k8s-node2   Ready     1h        v1.6.6

But When check the nodes in details, I got warnings:

$ kubectl describe nodes k8s-node1
...
Events:
FirstSeen  LastSeen  Count  From  SubObjectPath  Type  Reason  Message
39m     39m     1   kubelet, k8s-node1 Warning      ImageGCFailed       unable to find data for container /

I've googled the question, but can't figure it out. How can I fix it?

-- flex
kubelet
kubernetes

1 Answer

4/9/2020

add configer “--allow-privileged=true“ to kubelet configfile

-- keegan
Source: StackOverflow