DiskPressure crashing the node

3/3/2017

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...

-- eesdil
google-cloud-platform
kubernetes

1 Answer

3/10/2017

From the documentation you'll find that DiskPressure raises when:

Available disk space and inodes on either the node’s root filesytem or image filesystem has satisfied an eviction threshold

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).

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.

-- pagid
Source: StackOverflow