<p>When deploying my system using kubernetes, autofs service is not running on the container. </p>

<p>running <code>service autofs status</code> returns the following error:</p>

<p>[FAIL] automount is not running ... failed!</p>

<p>running <code>service autofs start</code> returns the following error:</p>

<p>[....] Starting automount.../usr/sbin/automount: test mount forbidden or incorrect kernel protocol version, kernel protocol version 5.00 or above required.
failed (no valid automount entries defined.).</p>

<ul>
<li>/etc/fstab file does exist in my file system.</li>
</ul>

<p>You probably didn't load the module for it. Official documenatation: <a href="https://wiki.archlinux.org/index.php/Autofs" rel="nofollow noreferrer">autofs</a>.</p>

<p>One of the reason for this error too,can be <strong>/tmp</strong> directory is not present or it's permission/ownership is wrong.
Check if your <strong>/etc/fstab</strong> file exists.</p>

<p>Useful blog: <a href="https://www.linuxtechi.com/automount-nfs-share-in-linux-using-autofs/" rel="nofollow noreferrer">nfs-autofs</a>.</p>
