1、Failed to get system container stats for “/system.slice/docker.service

修改kubelet参数,如下:

  1. [Unit]
  2. Description=kubelet: The Kubernetes Node Agent
  3. Documentation=https://kubernetes.io/docs/
  4. [Service]
  5. ExecStart=/usr/bin/kubelet --cgroup-driver=systemd --runtime-cgroups=/systemd/system.slice --kubelet-cgroups=/systemd/system.slice
  6. Restart=always
  7. StartLimitInterval=0
  8. RestartSec=10
  9. [Install]
  10. WantedBy=multi-user.target