<p>I am java developer and my devops expertice is not deep. Currently we use containers everywhere: docker, k8s etc.</p>
<p>In most cases we put single application into separated container, put it into separated k8s pod.
Is there ant scenarious when we should put</p>
<ul>
<li>2 or more applications into the same container</li>
<li>2 or more containers into the same pod ?</li>
</ul>

gstackoverflow
<p>Multiple containers <code>in a Pod</code>:</p>
<p>Helper or side application to your main application -- Called <code>Side-Car</code> containers. example of side-car containers would be: back-up container, Authentication, Synchronising, etc</p>
<hr />
<p>Also we have <code>Pause Containers</code>:</p>
<ul>
<li><code>Pause</code> container in each Pod</li>
<li>Also called <code>sandbox</code> containers</li>
<li>Reserve and holds network namespace</li>
<li>Enables communication between containers</li>
</ul>
<hr />
<p>More Resources:</p>
<ul>
<li><a href="https://medium.com/bb-tutorials-and-thoughts/kubernetes-learn-sidecar-container-pattern-6d8c21f873d" rel="nofollow noreferrer">Learn Sidecar Container Pattern</a></li>
</ul>
