A permitting service writes logs to files on disk. A second container in the same Pod must tail those files and ship them to a central system. Which pattern fits?
Select an answer to reveal the explanation.
Short Explanation
Sidecars are helpful roommates: same apartment (Pod), shared fridge (volume), each doing their chore. The logger tails files the app drops in the shared emptyDir and ships them out.
Full Explanation
The sidecar pattern co-locates a helper with the main container, sharing the Pod’s volumes and network namespace. An emptyDir volume is a common shared scratch space for log files. Init containers exit before the app runs, so they cannot continuously ship logs. Separate Deployments do not automatically share another Pod’s local filesystem.