Multi-container Pods in Kubernetes
There are different patterns of multi-container Pods in Kubernetes such as:
- Ambassador - A container that proxy the network connection to the main container. For example to proxy the connection to the Dev, Test or Prod databases
- Adapter -A container that transform output of the main container. For example it will transform the logs for log agent to specified standard
- Sidecar - An extra container in your pod to enhance or extend the functionality of the main container. For example - a log application that will forward logs to log agent
Multi-container Pods share same:
- lifecycle - containers are created and destroyed together
- network - containers share same network space, they can refer each other as localhost
- storage - containers havea access to the same storage volumes