Study. uk . com
  1. Home
  2. All questions
  3. Question 894

CKA study material · question 894 of 1000

You need the kubelet's own logs on a systemd node. Which command reads them?

  1. kubectl logs -n kube-system kubelet
  2. cat /var/log/pods/kubelet.log
  3. crictl logs kubelet
  4. journalctl -u kubelet
Show the answer

Answer: D. journalctl -u kubelet

On a systemd node the kubelet and container runtime write to journald; they run outside containers, so kubectl logs and crictl cannot reach them.

Source: Logging Architecture (Kubernetes) — System component logs › Log locations

Challenge yourself on this topic → Study as cards