Serge Vu
Serge Vu

Reputation: 551

Where can I find kubelet logs on Container OS?

So I can see them under var/log/messages in the pods running other OS but I can't locate kubelet logs for the machines running Container OS.

Upvotes: 0

Views: 2505

Answers (2)

user64287
user64287

Reputation: 53

kubelet logs can be see using journalctl.

journalctl -u kubelet or journalctl --unit kubelet

Upvotes: 0

marian.vladoi
marian.vladoi

Reputation: 8066

Container-Optimized OS uses the systemd-journald service to collect system logs, so Docker and Kubelet logs are in /var/log/journal.

You can also run journalctl to view the logs.

Upvotes: 1

Related Questions