Multicontainer pods or deployments

We have many questions on depolyement/pod with multicontainer.
Few of them are 2 or 3 containers and one with 1 initcontiner along with the container.
Co-container is clearly defined(i can understand).

What is the keyword that we have to look for a initcontainer in a multicontainer pod/deployment request? “sidecar” is mentioned in both initcontainer and 2 container questions also…

Thanks

Hi @sveemani

This is the response from the Linux Foundation about initContainers and co-located containers:

… whenever we want candidates to create a sidecar container, it is aligned with the official doc’s definition of sidecar, and if we want candidates to create a co-located container (the old way), we ask for a co-located container.

So the sidecar container is now an initContainer with restartPolicy set to Always.

We do have a detailed lecture on this topic in the Application Lifecycle Management module of the CKA course.