Kubernetes

How many containers can a pod contain?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

A pod can include multiple containers but in most cases it would probably be one container per pod.

There are some patterns where it makes to run more than one container like the "side-car" pattern where you might want to perform logging or some other operation that is executed by another container running with your app container in the same Pod.