<p>How can I output the PodSpec of a replication controller using kubectl?</p>

<p>I tried
<code>
kubectl describe rc &lt;name&gt;
</code></p>

<p>but the output doesn't include the PodSpec.</p>

<p>You can see the <code>pod.spec</code> for a replicationController using <code>kubectl get</code> and the <code>--output=json</code> or <code>--output-yaml</code> arguments. Something like this should work:</p>

<pre><code>kubectl get rc &lt;rc_name&gt; --output=yaml
</code></pre>
