<p>I want to run multiple python scripts with passing arguments to the python script, how I can do that? Is it possible in Kubernetes?</p>
<p>Like I have multiple python scripts with different inputs: <code>&quot;./main.py&quot;, &quot;1&quot; , &quot;./main2.py&quot;, &quot;2&quot;, &quot;./main3.py&quot;, &quot;3&quot;</code> I can not put all of them in one file to run need to run them separately here, is there any way to do that?</p>
<pre><code>kind: Pod
metadata:
  name: hello-world
spec:  # specification of the pod’s contents
  restartPolicy: Never
  containers:
  - name: hello
    image: &quot;ubuntu:14.04&quot;
    env:
    - name: MESSAGE
      value: &quot;hello world&quot;
        command: [ &quot;python&quot; ]
        args: [ &quot;./main.py&quot;, &quot;1&quot; ]
</code></pre>

someone
<p>can you try as shown below</p>
<pre><code>kind: Pod
metadata:
  name: hello-world-1
spec:  # specification of the pod’s contents
  restartPolicy: Never
  containers:
  - name: hello
    image: &quot;ubuntu:14.04&quot;
    env:
    - name: MESSAGE
      value: &quot;hello world&quot;
        command: [ &quot;python&quot; ]
        args: [ &quot;./main.py&quot;, &quot;1&quot; ]
---
kind: Pod
metadata:
  name: hello-world-2
spec:  # specification of the pod’s contents
  restartPolicy: Never
  containers:
  - name: hello
    image: &quot;ubuntu:14.04&quot;
    env:
    - name: MESSAGE
      value: &quot;hello world&quot;
        command: [ &quot;python&quot; ]
        args: [ &quot;./main2.py&quot;, &quot;2&quot; ]
---
kind: Pod
metadata:
  name: hello-world-3
spec:  # specification of the pod’s contents
  restartPolicy: Never
  containers:
  - name: hello
    image: &quot;ubuntu:14.04&quot;
    env:
    - name: MESSAGE
      value: &quot;hello world&quot;
        command: [ &quot;python&quot; ]
        args: [ &quot;./main3.py&quot;, &quot;3&quot; ]
</code></pre>
