kata-containers / runtime

Kata Containers version 1.x runtime (for version 2.x see https://github.com/kata-containers/kata-containers).
https://katacontainers.io/
Apache License 2.0
2.1k stars 377 forks source link

add observability bind mount to retrieve logs from guest #3137

Closed egernst closed 3 years ago

egernst commented 3 years ago

We'd like to be able to reliably pull 'custom userspace application' logs from the Kata sandbox to facilitate getting event details out of the guest (imagine running something like auditd, or any other app...).

By creating a /var/log/kata/ directory on the host and bind mounting it to the host shared directory, we can provide a path that custom guest-userspace applications can leverage to provide logs onto the host, which could then be processed accordingly.

This path and mount is tied to the lifecycle of the sandbox, and is not exposed to the underlying container(s). Filesystem sharing is required for this.

Alternative considered:

fidencio commented 3 years ago

This issue is being automatically closed as Kata Containers 1.x has now reached EOL (End of Life). This means it is no longer being maintained.

Important:

All users should switch to the latest Kata Containers 2.x release to ensure they are using a maintained release that contains the latest security fixes, performance improvements and new features.

This decision was discussed by the @kata-containers/architecture-committee and has been announced via the Kata Containers mailing list:

If you believe this issue still applies to Kata Containers 2.x, please open an issue against the Kata Containers 2.x repository, pointing to this one, providing details to allow us to migrate it.