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

Reference :