Multi Container Pods
Some materials are already available in CKA.
Follow this order:
In addition to the sidecar as presented above, we have other architectures:
- Ambassador
- Adapter
A good example for the sidecar would be sending logs to a log server. If you need to format the log from different applications to send the log to the server, the sidecar could perform this function. It would take the logs from the console, format them, and send them to the server. Instead of needing to do all this formatting in each microservice, we could do it externally and avoid burdening the application with this work. If something changes in this log format, it won't interfere with the application.
Another example, but now for ambassador, is communication with the database.

This logic of communication with the correct database could be removed from the code and given to an ambassador that would act as a proxy, but to the correct database. For example, if the label is env=prod, it delivers the connection to the production database. The application would only need to imagine that the database is local, pointing to localhost.