multiple command in postStart hook of a container : <p>in a kubernetes Deployment yaml file is there a simple way to run multiple commands in the postStart hook of a container?</p>

<p>I'm trying to do something like this:</p>

<pre><code>lifecycle:
  postStart:
    exec:
      command: ["/bin/cp", "/webapps/myapp.war", "/apps/"]
      command: ["/bin/mkdir", "-p", "/conf/myapp"]
      command: ["touch", "/conf/myapp/ready.txt"]
</code></pre>

<p>But it doesn't work.
(looks like only the last command is executed)</p>

<p>I know I could embed a script in the container image and simply call it there... But I would like to be able to customize those commands in the yaml file without touching the container image.</p>

<p>thanks</p>
