title: Passing variables to args field in a yaml file, kubernetes
body: <p>I am writing a YAML file to use Kubernetes and I wondering how to pass variables to args field.</p>
  
  <p>I need to do something like this :</p>
  
  <pre><code>args:  ['--arg1=http://12.12.12.12:8080','--arg2=11.11.11.11']
  </code></pre>
  
  <p>But I don't want to hard code those values for <code>--arg1</code> and <code>--arg2</code>, instead it should be like,</p>
  
  <pre><code>args:  ['--arg1='$HOST1,'--arg2='$HOST2]
  </code></pre>
  
  <p>How should I do this?</p>