In the k8s documentation related to node level log...
# kubernetes
v
In the k8s documentation related to node level logging i found the statement "By default, if a container restarts, the kubelet keeps one terminated container with its logs. If a pod is evicted from the node, all corresponding containers are also evicted, along with their logs." Can anyone explain what is meant by when a pod is evicted logs , its logs are also evicted. Will it lead to log loss ? I am using fluentbit and sending logs to ElasticSearch. I n case of pod eviction will i loose logs
t
If you're using fluent bit, you're fine.
So a container's logs get forwarded by a kubelet to locations that exist on the node. Fluentbit forwards the logs from the nodes to... somewhere else... in your case, its ElasticSearch. So when the pod is evicted its logs go away, but FluentBit has already forwarded them by then.