Reputation: 551
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
Reputation: 53
kubelet logs can be see using journalctl.
journalctl -u kubelet
or journalctl --unit kubelet
Upvotes: 0
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