Is it possible to get a list files which are occupying a running Pods memory? I have tried metrics-server but that just tells memory and CPU usage per pod and node. Much appreciate any help.
By assuming what you looking is to list the files inside the container(s) in the pod, you can simply execute kubectl exec
command,
List down the pods
kubectl get pods
Get the pod name.
List the filesystem contents,
kubectl exec -it <pod Name> ls
or even,
kubectl exec -it <pod Name> ls <desired path>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With