-
Failed to get system container stats for "/system.slice/kubelet.service": failed to get cgroup stats for "/system.slice/kubelet.service" failed to find cgroups of kubelet - cpu and memory cgroupIT 2020. 7. 1. 12:04
failed to find cgroups of kubelet - cpu and memory cgroup
# 해결
vi /etc/systemd/system/kubelet.service.d/11-cgroups.conf
[Service]
CPUAccounting=true
MemoryAccounting=true
vi /etc/sysconfig/kubeletKUBELET_CGROUP_ARGS=--cgroup-driver=systemd --runtime-cgroups=/systemd/system.slice --kubelet-cgroups=/systemd/system.slice[root@localhost ~]# vi /usr/lib/systemd/system/kubelet.service
[Unit]
Description=kubelet: The Kubernetes Node Agent
Documentation=https://kubernetes.io/docs/
[Service]
ExecStart=/usr/bin/kubelet
Restart=always
StartLimitInterval=0
RestartSec=10
CPUAccounting=true
Mem oryAccounting=true
[Install]
WantedBy=multi-user.target
#재시작
# systemctl daemon-reload
# systemctl restart kubelet
'IT' 카테고리의 다른 글
kubectl describe pods coredns-66bff467f8-9hq7j -n kube-system (0) 2020.07.01 rm: cannot remove `/var/lib/kubelet/pods/5c17f0a0-845d-4cd8-a1d6-16167ca50c25/volumes/kubernetes.io~secret/coredns-token-rbscr': 장치나 자원이 동작 중 (0) 2020.07.01 Kubernetes Dashboard 설치 (0) 2020.07.01 kube-system kube-dns:dns 403 (0) 2020.07.01 쿠버네티스 삭제 (0) 2020.07.01