<p>I have backend service deployed on a private GKE cluster, and i want to execute this Corn job but everytime i get the following error: <code>Pod errors: Error with exit code 127</code></p>
<pre><code>   apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: call-callendar-api-demo
spec:
  
  schedule: &quot;*/15 * * * *&quot;
  jobTemplate:
    spec:
      template:
        spec:
          nodeSelector:
            env: demo
          containers:
          - name: call-callendar-api-demo
            image: busybox
            command: [&quot;/bin/sh&quot;]
            args: [&quot;-c&quot;, 'curl -X POST &quot;curl -X POST &quot;https://x.x.x/api/v1/cal/add_link&quot; -H  &quot;accept: application/json&quot; -d &quot;&quot; &gt;/dev/null 2&gt;&amp;1&quot; -H  &quot;accept: application/json&quot; -d &quot;&quot; &gt;/dev/null 2&gt;&amp;1']
          restartPolicy: Never
</code></pre>
<p>Any suggestions why this  CornJob that is deployed on the same namespace with my backend service is giving me this error? Also there is no logs in the container :(  btw i have basic auth, could that be a reason?</p>
<p>Edit: Logs from the pod after removing <code>&gt;/dev/null/</code>:</p>
<pre><code>textPayload: &quot;curl: (3) URL using bad/illegal format or missing URL  

textPayload: &quot;
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: application
&quot;
</code></pre>

Шурбески Христијан
<p>The command is wrong, and i changed the picture with one that implements <code>curl</code> it suppose to look like this.</p>
<pre><code>apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: demo
spec:
  
  schedule: &quot;*/15 * * * *&quot;
  jobTemplate:
    spec:
      template:
        spec:
          nodeSelector:
            env: demo
          containers:
          - name: -demo
            image: curlimages/curl #changed the picture 
            command: [&quot;/bin/sh&quot;]
            args: [&quot;-c&quot;, 'curl -X POST &quot;https://x.x.x/api/v1/cal/addy_link&quot; -H  &quot;accept: application/json&quot; -d &quot;&quot; &gt;/dev/null 2&gt;&amp;1']
          restartPolicy: Never
</code></pre>
<p>It solved my problem.</p>
