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

CKA study material · question 893 of 1000

A Pod is evicted from a node. What becomes of its container logs on that node?

  1. They are archived under /var/log/pods/evicted
  2. They are retained until the next rotation
  3. They are evicted along with the containers
  4. They are uploaded to the API server with the eviction event
Show the answer

Answer: C. They are evicted along with the containers

The kubelet keeps one terminated container and its logs across a restart, but evicting the Pod removes its containers and their logs together — which is the case for cluster-level logging.

Source: Logging Architecture (Kubernetes) — Pod and container logs › How nodes handle container logs

Challenge yourself on this topic → Study as cards