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

CKA study material · question 895 of 1000

Under which directory does the kubelet have the container runtime write container logs by default?

  1. /var/log/pods
  2. /var/lib/kubelet/logs
  3. /var/log/containers-archive
  4. /var/log/journal
Show the answer

Answer: A. /var/log/pods

/var/log/pods is the default; the kubelet's podLogsDir can move it, but many tools assume the default path, so changing it is done cautiously.

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

Challenge yourself on this topic → Study as cards