<p>For instance can I have following yaml to produce a pod with multiple containers:</p>

<pre><code>apiVersion: v1
kind: Pod
metadata:
name: lampapp
labels:
    app: app
spec:
  containers:
  - name: lampdb
    image: mysql_test
  - name: app
    image: php-app-db-url-env
    env:
     - name: DB_URL
      value: 127.0.0.1:3306
  - name: app2
    image: php-app-db-url-env
    env:
    - name: DB_URL
      value: 127.0.0.1:3306
</code></pre>

<p>Yes, you can add multiple container with same image.</p>

<p><strong>The containers object must contain:</strong></p>

<ol>
<li><strong>name:</strong> Name of the container. It must be a <em>DNS_LABEL</em> and be <code>unique</code> within the pod. Cannot be updated.</li>
<li><strong>image:</strong> Docker image name.</li>
</ol>

<p>You have to make container name unique</p>

<p>You can do following:</p>

<pre><code>- name: app
  image: php-app-db-url-env   ---
- name: app2                    |&gt; same image
  image: php-app-db-url-env   ---
</code></pre>

<p>But not this one:</p>

<pre><code>- name: app
  image: php-app-db-url-env
- name: app
  image: &lt;any image&gt;
</code></pre>

<p>Also the containers spec should include a unique port number within the Pod</p>
