<blockquote>
<p><em>How to change the Docker <code>ENTRYPOINT</code> in a Kubernetes deployment, without changing also the Docker <code>CMD</code>?</em></p>
</blockquote>
<p>In the Pod I would do</p>
<pre><code>image: &quot;alpine&quot;
entrypoint: &quot;/myentrypoint&quot;
</code></pre>
<p>but this overwrites either <code>ENTRYPOINT</code> <em><strong>and</strong></em> the <code>CMD</code> from the <code>Dockerfile</code>.</p>
<p>The <a href="https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes" rel="nofollow noreferrer">documentation</a> doesn't mention it, but seems like a big use-case missed.</p>

Kamafeather
<p>That's not a thing.</p>
<ul>
<li><code>ENTRYPOINT</code> (in Dockerfile) is equal to <code>command:</code> (in PodSpec)</li>
<li><code>CMD</code> (in Dockerfile) equals <code>args:</code> (in PodSpec)</li>
</ul>
<p>So just override <code>command</code> but not <code>args</code>.</p>
