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

CKA study material · question 398 of 1000

Where are container logs written on a node? Choose two.

  1. Under /var/log/pods by default
  2. Under /var/lib/kubelet/logs by default
  3. At a custom path when the kubelet's podLogsDir is set
  4. Inside the container's writable layer only
Show the answer

Answer: A. Under /var/log/pods by default
C. At a custom path when the kubelet's podLogsDir is set

The default location is /var/log/pods, and podLogsDir moves it, though tooling assumes the standard path.

Source: Logging Architecture (Kubernetes) — System component logs

Challenge yourself on this topic → Study as cards