kubectl ls — or some other way to see into a POD

You can execute commands in a container using kubectl exec command.

For example:

to check files in any folder:

kubectl exec <pod_name> -- ls -la /

or to calculate md5sum of any file:

kubectl exec <pod_name> -- md5sum /some_file

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)