title: Kubernetes cronjob args with env vars
body: <p>I'm trying to execute a <code>curl</code> command inside a container in <code>gke</code>.</p>
  
  <pre><code>apiVersion: batch/v1beta1
  kind: CronJob
  metadata:
    name: app
  spec:
    schedule: "* * * * *"
    jobTemplate:
      spec:
        template:
          spec:
            containers:
            - name: app
              image: appropriate/curl
              env:
              - name: URL
                value: "https://app.com"
              - name: PASSWORD
                value: "pass"
              args: ["-vk", "-H", "\"Authorization: Bearer $(PASSWORD)\"", "$(URL)"]
            restartPolicy: OnFailure
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>curl: option -vk -H "Authorization: Bearer pass" https://app.com: is unknown
  </code></pre>
  
  <p>I just can't find out how to execute the <code>curl</code> with the <code>args</code> field using environment variables.</p>
  
  <p>This curl command works in my pc.<br>
  What am I doing wrong?<br>
  How can I integrate env vars with container curl command args?</p>