This is a small screenshot taken from blog which explains how kubectl logs works.
Reference :
https://blog.aquasec.com/kubernetes-security-pod-escape-log-mounts