「Kubernetes」- kubelet.service

改进

[DONE] … must evict pod(s) to reclaim ephemeral-storage …

Kubernetes eviction manager evicting control plane pods to reclaim ephemeral storage
Managing Compute Resources for Containers
docker docs/Configure logging drivers
Pods evicted with error “The node was low on resource: ephemeral-storage”

问题描述

在某个主机点上,执行 journalctl -f -u kubelet.service 查看日志,显示该错误。

问题原因

磁盘空间没有用完,但是只剩下 1G 空间。遇到「
kube-dns timed out: eviction manager: must evict pod(s) to reclaim ephemeral-storage #4084」问题的人,是因为磁盘空间满了;

如果想要了解该问题的成因,需要阅读「
Local ephemeral storage」手册;

解决办法

在「
Kubernetes eviction manager evicting control plane pods to reclaim ephemeral storage」中,答主通过修改
/var/lib/kubelet/config.yaml配置文件来解决问题;

而我则对主机磁盘进行扩容;