Kubernetes — Learn Init Container Pattern

Understanding Init Container Pattern With an Example Project

Bhargav Bachina
Bachina Labs

--

Photo by Judson Moore on Unsplash

Kubernetes is an open-source container orchestration engine for automating deployment, scaling, and management of containerized applications. A pod is the basic building block of kubernetes application. Kubernetes manages pods instead of containers and pods encapsulate containers. A pod may contain one or more containers, storage, IP addresses, and, options that govern how containers should run inside the pod.

A pod that contains one container refers to a single container pod and it is the most common kubernetes use case. A pod that contains Multiple co-related containers refers to a multi-container pod. There are few patterns for multi-container pods on of them is the init container pattern. In this post, we will see this pattern in detail with an example project.

  • What are Init Containers
  • Other Patterns
  • Example Project
  • Test With Deployment Object
  • How to Configure Resource Limits
  • When should we use this pattern
  • Summary
  • Conclusion

What are Init Containers

--

--