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>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.