kubectl YAML config file equivalent of "kubectl run ... -i --tty ..." : <p>I've been using "kubectl run" with assorted flags to run Jobs interactively, but have recently outgrown what I can do with those flags, and have graduated to using YAML config files to describe my jobs.</p>

<p>However, I can't find an equivalent to the "-i" and "--tty" flags, to attach to the Job I'm creating.  </p>

<p>Is there an equivalent YAML spec for:</p>

<pre><code>kubectl run myjob \
            -i \
            --tty \
            --image=grc.io/myproj/myimg:mytag \
            --restart=Never \
            --rm \
            -- \
            my_command
</code></pre>

<p>Or is this maybe not the right approach?</p>
