<p>I have a Kubernetes <code>Job</code>, <code>job.yaml</code> :</p>
<pre><code>---
apiVersion: v1
kind: Namespace
metadata:
  name: my-namespace
---
apiVersion: batch/v1
kind: Job
metadata:
  name: my-job
  namespace: my-namespace
spec:
  template:
    spec:
      containers:
      - name: my-container
        image: gcr.io/project-id/my-image:latest
        command: [&quot;sh&quot;, &quot;run-vpn-script.sh&quot;, &quot;/to/download/this&quot;] # need to run this multiple times
        securityContext:
          privileged: true
          allowPrivilegeEscalation: true
      restartPolicy: Never
</code></pre>
<p>I need to run <code>command</code> for different parameters. I have like 30 parameters to run. I'm not sure what is the best solution here. I'm thinking to create container in a loop to run all parameters. How can I do this? I want to run the <code>commands</code> or containers all simultaneously.</p>

<p>In simpler terms , you want to run multiple commands , following is a sample format to execute multiple commands in a pod :</p>
<pre><code>command: [&quot;/bin/bash&quot;,&quot;-c&quot;,&quot;touch /foo &amp;&amp; echo 'here' &amp;&amp; ls /&quot;]
</code></pre>
<p>When we apply this logic to your requirement for two different operations</p>
<pre><code> command: [&quot;sh&quot;, &quot;-c&quot;, &quot;run-vpn-script.sh /to/download/this &amp;&amp; run-vpn-script.sh /to/download/another&quot;] 
</code></pre>
