DiskPressure使节点崩溃 [英] DiskPressure crashing the node
问题描述
DiskPressure的真正含义是什么,以及在容器创建过程中如何避免kubernetes?
What does DiskPressure really means and how it can be avoided in kubernetes during container creation?
看起来,当我在节点上创建一个新的容器时,它是由于压力而崩溃整个节点...
Seemingly when I creating a new container on a node there is a high chance that it is crashing the whole node because of the pressure...
推荐答案
从 documentation ,你会发现 DiskPressure
引发了当:
From the documentation you'll find that DiskPressure
raises when:
节点的根文件系统或映像文件系统上的可用磁盘空间和inode满足驱逐阈值
Available disk space and inodes on either the node’s root filesytem or image filesystem has satisfied an eviction threshold
每当发生这些问题时,了解节点的条件有点重要(留下多少空间/ inode,...),并了解相关容器图像很重要。这可以通过一些基本的系统监控来完成(请参阅资源使用监控)。
Learning about the conditions of your nodes whenever these issues occur is somewhat important (how much space/inodes are left, ...) and also learning about the related container images is important. This can be done with some basic system monitoring (see the Resource Usage Monitoring).
一旦知道了这些条件,就应该考虑调整 - low-diskspace-threshold-mb
, - image-gc-high-threshold
和 - image-gc-low-threshold
您的参数 kubelet ,这样就可以有足够的空间进行正常的操作,或者考虑为你的节点提供更多的空间,取决于要求。
Once you know about the conditions, you should consider to adjust the --low-diskspace-threshold-mb
, --image-gc-high-threshold
and --image-gc-low-threshold
parameters of you kubelet, so that there's always enough space for normal operation, or consider to provision more space for you nodes, depending on the requirements.
这篇关于DiskPressure使节点崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!