<p>How to Create a pod named pod1 with a single app container for each of the following images running inside one container Redis + Nginx + busybox.</p>
<ul>
<li>Can some answer this question?</li>
<li>Is this possible to create in
Kubernetes?</li>
</ul>

shiva
<ul>
<li><p>Can some answer this question? =&gt; Yes</p>
</li>
<li><p>Is this possible to create in Kubernetes? =&gt; Yes</p>
</li>
</ul>
<hr />
<blockquote>
<p>First way (not recommended)</p>
</blockquote>
<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: po-with-multiple-container
spec:
  containers:
  - image: redis:5.0.4
    name: redis-container

  - image: nginx:latest
    name: webserver-container
    ports:
      - containerPort: 80

  - image: busybox
    name: busybox-container
    command: [ &quot;/bin/bash&quot;, &quot;-c&quot;, &quot;--&quot; ]
    args: [ &quot;while true; do sleep 30; done;&quot; ]
</code></pre>
<hr />
<blockquote>
<p>Second Way - recommended way</p>
</blockquote>
<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: po-with-multiple-container
spec:
  containers:
    - image: redis:5.0.4
      name: redis-container
 
---

apiVersion: v1
kind: Pod
metadata:
  name: po-with-multiple-container
spec:
  containers:
    - image: nginx:latest
      name: webserver-container
      ports:
        - containerPort: 80
          
---
apiVersion: v1
kind: Pod
metadata:
  name: po-with-multiple-container
spec:
  containers:
    - image: busybox
      name: busybox-container
      command: [ &quot;/bin/bash&quot;, &quot;-c&quot;, &quot;--&quot; ]
      args: [ &quot;while true; do sleep 30; done;&quot; ]
</code></pre>
