From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Multi-container pods

Multi-container pods

- Let's talk about a multi-container Pod. So, does it make sense to use multi-container Pods? Well, in most cases, no. The one-container Pod is the standard. And the single container Pod is easy to build and maintain. Let me give you an example. Let's say that you want to run an application. This application has a web server as a front end and a database as a backend. You might think, "Okay, I'm going to run one Pod, and in the Pod I'm going to create two containers, the web server, as well as the database." But hey, next you find out that the newer version of the database is available. Then, how are you ever going to update that without bringing down the web server? Well, that is one strong reason why you should use single container Pods. So, specific settings in the single container pod can be used that are good for that specific workload. I mean, in the Pod spec, you may have different properties for the web server as for the database server. And if you really want to create…

Contents