<p>What does DiskPressure really means and how it can be avoided in kubernetes during container creation?</p>

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

<p>From the <a href="https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#node-conditions" rel="nofollow noreferrer">documentation</a> you'll find that <code>DiskPressure</code> raises when:</p>
<blockquote>
<p>Available disk space and inodes on either the node’s root filesytem or image filesystem has satisfied an eviction threshold</p>
</blockquote>
<p>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 <a href="https://kubernetes.io/docs/user-guide/monitoring/" rel="nofollow noreferrer">Resource Usage Monitoring</a>).</p>
<p>Once you know about the conditions, you should consider to adjust the <code>--low-diskspace-threshold-mb</code>, <code>--image-gc-high-threshold</code> and <code>--image-gc-low-threshold</code> parameters of you <a href="https://kubernetes.io/docs/admin/kubelet/" rel="nofollow noreferrer">kubelet</a>, so that there's always enough space for normal operation, or consider to provision more space for your nodes, depending on the requirements.</p>
