Version: Next
Attaching Sidecar
The sidecar
trait allows you to attach a sidecar container to the component.
Note:
sidecar
trait is hidden by default inVelaUX
, you can use it in CLI.
#
How to useIn this Application, component log-gen-worker
and sidecar share the data volume that saves the logs.
The sidebar will re-output the log to stdout.
Deploy this Application.
Use vela ls
to check the application state:
And check the logging output of sidecar.