<p>As per the official man page documentation for coredump.conf, the core dump disk space utilization per node in Kubernetes can be modified by changing the MaxUse section to X%, and by default, it is 10%.</p>
<p><a href="https://man7.org/linux/man-pages/man5/coredump.conf.5.html" rel="nofollow noreferrer">https://man7.org/linux/man-pages/man5/coredump.conf.5.html</a></p>
<p>I have done the following things :</p>
<ul>
<li><p>1st Solution which I tried: Modified <code>/etc/systemd/coredump.conf</code> by removing # before MaxUse and changes it to 20%</p>
<pre><code>cat /etc/systemd/coredump.conf
MaxUse=20%
</code></pre>
<hr />
<p>After that, I ran &quot;sudo systemctl daemon-reload&quot; in order to reflect the change but it didn't work.</p>
</li>
<li><p>2nd Solution which I tried : Adding <code>/etc/systemd/coredump.conf.d/custom.conf</code> to override <code>/etc/systemd/coredump.conf</code>. This option was specified here: <a href="https://wiki.archlinux.org/index.php/Core_dump" rel="nofollow noreferrer">https://wiki.archlinux.org/index.php/Core_dump</a></p>
<pre><code>[Coredump]
MaxUse=20%
</code></pre>
<hr />
<p>After that, I ran &quot;sudo systemctl daemon-reload&quot; in order to reflect the change but it didn't work.
I did multiple cores just to check whether both solutions are working but it didn't work:</p>
<p>I have core my test application and just to get large cores I have used the below-mentioned command:</p>
<pre><code>$ sudo dd if=/dev/zero of=abc.xz bs=1024 count=10240000
</code></pre>
<p>While testing this my core dump directory <code>/var/lib/systemd/coredump/</code> had over 150G of core.</p>
</li>
</ul>

<p>Looks like the <a href="https://man7.org/linux/man-pages/man5/coredump.conf.5.html" rel="nofollow noreferrer">docs</a> <a href="https://unix.stackexchange.com/a/424167/54556">are misleading</a> and say that it defaults to <code>MaxUse</code> to be 10%. But it seems like the <a href="https://github.com/systemd/systemd/blob/4e4e3d97664163267d8295e6f58e0ff8560bea33/src/basic/parse-util.c#L109" rel="nofollow noreferrer">systemd code</a> shows that it's parsed in terms of Bytes, Kbytes, Mbytes, etc. You can try something like:</p>
<pre><code>[Coredump]
MaxUse=20G
</code></pre>
