<p>Is there any kubectl command to bootstrap yaml file for certain object?</p>

<p>For example </p>

<pre><code>kubectl generate deployment --yml
</code></pre>

<p>After which I would fill it with values I want.</p>

<p>Thanks</p>

<p>You could try playing with:</p>
<pre><code>kubectl create &lt;resourcetype&gt; &lt;otheroptions&gt; --output=yaml --dry-run
</code></pre>
<p>See:</p>
<ul>
<li><a href="https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#create" rel="nofollow noreferrer">https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#create</a></li>
</ul>
<p>for different <code>&lt;resourcetype&gt;</code> you could use this with.</p>
