Native Sidecar Containers
A Job's Pod needs a log-shipper that must be running before the main container starts and must not stop the Job from completing when the main container exits. How should you declare the log-shipper?
Choose one answer
As a normal entry in initContainers.
initContainers
As a second entry in containers, next to the main container.
containers
As a postStart lifecycle hook on the main container.
postStart
As an entry in initContainers with restartPolicy: Always.
restartPolicy: Always