<p>I have extension.yaml with </p>

<pre><code> args:["key1","newValue"]
</code></pre>

<p>in my dockerfile</p>

<pre><code>ENTRYPOINT  [ "/path/execution"]
CMD["-key1","value1","-key2","value2","-key3","value3]
</code></pre>

<p>When I will run the container does the keys : key2 and key3 will be saved or it will be deleted ?</p>

<p>also Can I move execution from the ENTRYPOINT   to the first parameter in the CMD</p>

user1365697
<p>According to the k8s <a href="https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#define-a-command-and-arguments-when-you-create-a-pod" rel="nofollow noreferrer">docs</a>:</p>

<blockquote>
  <p>The command and arguments that you define in the configuration file
  override the default command and arguments provided by the container
  image.
  If you define args, but do not define a command, the default command
  is used with your new arguments.</p>
</blockquote>

<p>For your docker example the <em>entrypoint</em> field corresponds to k8s <em>command</em>. <a href="https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes" rel="nofollow noreferrer">This</a> is the relation: </p>

<pre><code>| Docker field name | K8s field name |
|------------------:|:--------------:|
|    ENTRYPOINT     |     command    |
|       CMD         |      args      |
</code></pre>

<blockquote>
  <p>If you supply only args for a Container, the default Entrypoint
  defined in the Docker image is run with the args that you supplied.</p>
</blockquote>

<p><strong>So, for your example you will end with the following command:</strong><br>
<code>/path/execution key1 newvalue</code></p>
