sidecar trait allows you to attach a sidecar container to the component.
sidecartrait is hidden by default in
VelaUX, you can use it in CLI.
In 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.
vela ls to check the application state:
And check the logging output of sidecar.