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

CKA study material · question 946 of 1000

A node log query is made for a service whose logs go to a file rather than journald. What does the kubelet do?

  1. It returns an error naming the missing journal unit
  2. It falls back to files under /var/log named after the service
  3. It reads the service's stdout through the container runtime
  4. It requires the file path to be given explicitly
Show the answer

Answer: B. It falls back to files under /var/log named after the service

The kubelet checks the native logger first and then tries /var/log paths derived from the service name, so a caller need not know which the service uses.

Source: System Logs (Kubernetes) — Log query

Challenge yourself on this topic → Study as cards