<p>how can I enable the <strong><em>record</em></strong> parameter by default each time I want to create a new pod?
My goal is change the default behaviour of the record parameter in order to avoid to use the --record=true eache time I want to instantiate new pod.</p>

<p>This is an example:</p>

<pre><code>kubectl create -f https://raw.githubusercontent.com/mhausenblas/kbe/master/specs/deployments/d09.yaml --record=true
</code></pre>

<p>Otherwise, if is not possible change the default behaviour of <strong><em>kubectl create</em></strong>, is there a possibility to add record option to my yaml configuration file?</p>

<p>Thank you.</p>

<p>AFAIK, you can't define default values for commands parameters</p>

<p>Your alternatives are:</p>

<ul>
<li><p>create a bash function with the default parameters and call it with the parameters you want</p>

<p><strong><code>diego@PC:/$</code></strong><code>k8s() { kubectl $1 $2 $3 --record=true;}</code></p>

<p><strong><code>diego@PC:/$</code></strong><code>k8s create -f https://test</code></p></li>
<li><p>Create <a href="https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/" rel="nofollow noreferrer">kubectl plugins</a> and write your custom command to replace the <code>create</code> subcommand  with your own parameter set and internally you call the kubectl create.</p>

<p>The idea is similar to above, but you would still use the kubectl, </p>

<p>i.e: 
<code>kubectl createrec -f https://raw.githubusercontent.com/../d09.yaml</code></p></li>
<li><p>The other alternative is download the source and change the default value and compile a new version</p></li>
</ul>
