Kubernetes — Learn Sidecar Container Pattern

Understanding Sidecar Container Pattern With an Example Project

Bhargav Bachina
Bachina Labs

--

Photo by hidde schalm 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 one of them is the sidecar container pattern. In this post, we will see this pattern in detail with an example project.

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

What are Sidecar Containers

--

--