<p>I am running Mongodb pod in kunernetes cluster using nfs volume.I am writing pod.yml like this</p>

<p><a href="https://i.stack.imgur.com/qPtlS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qPtlS.png" alt="enter image description here"></a></p>

<p>but i am getting the below error<a href="https://i.stack.imgur.com/2iAVA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2iAVA.png" alt="enter image description here"></a></p>

<p>Could anybody suggest how to resolve the above issue?</p>

BSG
<blockquote>
  <p>I am running Mongodb pod in kunernetes cluster using nfs volume.I am writing pod.yml like this</p>
</blockquote>

<p>Putting <code>mongo</code> in the <code>command:</code> is erroneous. The <strong>daemon</strong> is <code>mongod</code> and the image <a href="https://github.com/docker-library/mongo/blob/27496625/4.0/Dockerfile#L91" rel="nofollow noreferrer">would have started it automatically</a> had you not provided any <code>command:</code> at all.</p>

<p>Further, all <code>command:</code> lines are <code>exec</code>-ed, so putting <code>bash -c</code> in front of a command is just moving that command out of pid 1 and unnecessarily adding memory consumption to your container.</p>
