2

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?

Dat Nguyen
  • 1,626
  • 22
  • 25
flex
  • 21
  • 2
  • how did you install the cluster? did you use the kubeadm to install the cluster? with this step: https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/ – sfgroups Jun 20 '17 at 13:32
  • Can you run this script https://github.com/moby/moby/blob/master/contrib/check-config.sh and check if all the requirements for docker are fullfilled? – Ottovsky Jun 20 '17 at 20:10
  • I install my kubernetes cluster from binary. I just copy the binary file and write some `systemd service` file to boot kubernetes service. Not all the requirements for docker are fullfilled. Since the the results is too long, I just copy the items not satisfied, as follows: – flex Jun 21 '17 at 05:52
  • (RHEL7/CentOS7: User namespaces disabled; add 'user_namespace.enable=1' to boot command line) – flex Jun 21 '17 at 05:57
  • - CONFIG_RESOURCE_COUNTERS: missing – flex Jun 21 '17 at 05:57
  • - "ipvlan": - CONFIG_IPVLAN: missing – flex Jun 21 '17 at 05:58
  • - Storage Drivers: - "aufs": - CONFIG_AUFS_FS: missing - "zfs": - /dev/zfs: missing - zfs command: missing - zpool command: missing – flex Jun 21 '17 at 05:58
  • Did you find out how to solve this issue? – Magick May 21 '18 at 06:12

1 Answers1

0

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

keegan
  • 1