kubernetes/pkg/kubelet/server
Aravindh Puthiyaparambil d12696c20f
kubelet: Expose simple journald and Get-WinEvent shims on the logs endpoint
Provide an administrator a streaming view of journal logs on Linux
systems using journalctl, and event logs on Windows systems using the
Get-WinEvent PowerShell cmdlet without them having to implement a client
side reader.

Only available to cluster admins.

The implementation for journald on Linux was originally done by Clayton
Coleman.

Introduce a heuristics approach to query logs

The logs query for node objects will follow a heuristics approach
when asked to query for logs from a service. If asked to get the
logs from a service foobar, it will first check if foobar logs to the
native OS service log provider. If unable to get logs from these, it
will attempt to get logs from /var/foobar, /var/log/foobar.log or
/var/log/foobar/foobar.log in that order.
The logs sub-command can also directly serve a file if the query looks
like a file.

Co-authored-by: Clayton Coleman <ccoleman@redhat.com>
Co-authored-by: Christian Glombek <cglombek@redhat.com>
2023-03-14 08:54:36 -07:00
..
metrics add volume type and seperated histogram for volume stat collection 2022-01-19 22:33:37 +08:00
stats unittests: Fixes unit tests for Windows (part 6) 2023-01-31 11:49:26 +00:00
auth_test.go kubelet: wire checkpoint container support through 2022-07-14 10:27:41 +00:00
auth.go Generate and format files 2022-07-26 13:14:05 -04:00
doc.go
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
server_test.go kubelet: Replace deprecated pointer function 2023-01-08 13:44:09 +01:00
server_websocket_test.go Remove --redirect-container-streaming functionality (#95935) 2020-11-09 11:50:11 -08:00
server.go kubelet: Expose simple journald and Get-WinEvent shims on the logs endpoint 2023-03-14 08:54:36 -07:00