This is a small screenshot taken from blog which explains how kubectl logs works.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/2087d603-224f-462b-9c36-fe52432b6ec0/Untitled.png

Reference :