Skip to the content.

Kubernetes - Init Containers πŸ’₯

Description πŸ‘€

At times you may want to run a process that runs to completion in a container. For example a process that pulls a code or binary from a repository that will be used by the main web application. That is a task that will be run only one time when the pod is first created. Or a process that waits for an external service or database to be up before the actual application starts. That’s where initContainers come in.

In other words initContainers are containers that run to completion before the main container starts. They are useful for tasks such as initializing a database, pulling a code from a repository, or other utilities.


Examples 🧩


↩️