<p>How can I get a particular Kubernetes annotation from a deployment resource using <code>kubectl</code>? I know I can dynamically set an annotation on a deployment using:</p>
<pre><code>kubectl annotate deployment api imageTag=dev-ac5ba48.k1dp9
</code></pre>
<p>Is there a single <code>kubectl</code> command to then read this deployments <code>imageTag</code> annotation?</p>

<p>You can use the following command to get the <code>imageTag</code> annotation (given that annotation exists):</p>
<pre><code>kubectl get deploy DEPLOY_NAME -o jsonpath='{.metadata.annotations.imageTag}'
</code></pre>
