<p>How to translate this:</p>

<p><code>kubectl set image deployment/mydep mypot=img --insecure-skip-tls-verify</code></p>

<p>into curl REST API call? I want to signal to update image without kubectl .</p>

Jonas
<p>by using <strong>--v=9</strong> flag, you can increases the verbosity where it shows the curl request. you can get further information <a href="https://kubernetes.io/docs/reference/kubectl/cheatsheet/#kubectl-output-verbosity-and-debugging" rel="nofollow noreferrer">kubectl-output-verbosity-and-debugging</a> </p>

<p>for example,if you run the following command with <strong>the flag</strong> you will see following output  </p>

<pre><code>kubectl set image deployment/mydep mypot=img --insecure-skip-tls-verify --v=9
</code></pre>

<p><strong>kubectl request with verbosity</strong> </p>

<pre><code>I0319 14:07:07.912730   53546 loader.go:359] Config loaded from file /home/suresh.vishnoi/.kube/config
I0319 14:07:07.914104   53546 loader.go:359] Config loaded from file /home/suresh.vishnoi/.kube/config
I0319 14:07:07.921010   53546 loader.go:359] Config loaded from file /home/suresh.vishnoi/.kube/config
I0319 14:07:07.921331   53546 round_trippers.go:386] curl -k -v -XGET  -H "Accept: application/json, */*" -H "User-Agent: kubectl/v1.11.0+d4cacc0 (linux/amd64) kubernetes/d4cacc0" -H "Authorization: Bearer Tbg" 'https://console-openshift-test.xyz:8443/apis/extensions/v1beta1/namespaces/default/deployments/mydep'
I0319 14:07:07.945798   53546 round_trippers.go:405] GET https://console-openshift-test.xyz:8443/apis/extensions/v1beta1/namespaces/default/deployments/mydep 404 Not Found in 24 milliseconds
I0319 14:07:07.945861   53546 round_trippers.go:411] Response Headers:
I0319 14:07:07.945871   53546 round_trippers.go:414]     Cache-Control: no-store
I0319 14:07:07.945878   53546 round_trippers.go:414]     Content-Type: application/json
I0319 14:07:07.945895   53546 round_trippers.go:414]     Content-Length: 224
I0319 14:07:07.945902   53546 round_trippers.go:414]     Date: Tue, 19 Mar 2019 14:07:07 GMT
</code></pre>

<p>So translated request is </p>

<pre><code>curl -k -v -XGET  -H "Accept: application/json, */*" -H "User-Agent: kubectl/v1.11.0+d4cacc0 (linux/amd64) kubernetes/d4cacc0" -H "Authorization: Bearer Tbg" 'https://console-openshift-test.xyz:8443/apis/extensions/v1beta1/namespaces/default/deployments/mydep'
</code></pre>
