Snippets. Sidecar deployment

I published a small snippet how to deploy two webservices together in a sidecar. Here!

The context about sidecar you need to know is located below.

Pod is a group of one or more containers.
What containers in a pod share - network namespace (locahost), process namespace, storage.
What they do not share (directly) - filesystem, resources.

This effectively means that you can run a service in a sidecar along with the main service and both are web applications. Web apps can talk via localhost to each other. This might be not clearly visible from reading official desription with examples around using system utilities or a single web service.
When it might be useful - is when 2 webservices use shared code and MUST run using same version of that shared code.
That's all. Good luck, sailor!