January 2019
Intermediate to advanced
484 pages
11h 48m
English
It can be difficult to modify our application to write logs to standard streams rather than log files, and we often want to avoid the troubles brought about by logging to hostPath volumes. In this situation, we could run a sidecar container to deal with logging for a pod. In other words, each application pod would have two containers sharing the same emptyDir volume, so that the sidecar container can follow logs from the application container and send them outside their pod, as shown in the following diagram:

Although we don't need to worry about managing log files anymore, chores such as ...
Read now
Unlock full access