...

/

Multi-Container Pods: Init Containers

Multi-Container Pods: Init Containers

Learn about init containers and multi-container Pods.

We'll cover the following...

Init containers are a special type of container defined in the Kubernetes API. We run them in the same Pod as application containers, but Kubernetes guarantees they’ll start and complete before the main app container starts. It also guarantees they’ll only run once.

The purpose of init containers is to prepare and initialize the environment so it’s ready for application containers.

Consider a couple of quick examples.

We have an application that should only ...