<p>I need to pass dynamic env variable to <code>kubectl create</code>.  Something like this </p>

<p><code>kubectl create -f app.yaml --Target=prod</code></p>

<p>Based on Target code deploys on different servers.</p>

Rohith
<p>If you want to avoid installing 3rd party plugin then you can replace the text using sed "s/orginal/change/". It worked. I used this in Jenkins shell. </p>

<p><strong>cat app.yaml | sed "s/l3-apps/l2-apps/" | kubectl create -f -</strong></p>
