<p>What will be the equivalent ConfigMap YAML code for the following command line?</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>kubectl create configmap mongo-initdb --from-file=init-mongo.js</code></pre>
</div>
</div>
</p>

DireRaven
<p>There is actually a kubectl command that lets you get the generated yaml for a created config map. In your case:</p>
<pre><code>kubectl get configmaps mongo-initdb -o yaml
</code></pre>
