问题描述
在某个主机点上,执行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配置文件来解决问题。
而我则对主机磁盘进行扩容。
参考文献
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”