Hello Sai!
You may want to use kubectl exec command to connect to your pods (for example, if bash is installed "kubectl exec -it <podname> -n <namespace> -- bash") and run the following command to sort the PIDs and PPIDs based on highest CPU consumption:
ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%cpu | head
I hope this is helpful. If any clarification needed, let me know and I will do my best to answer.
Please "Accept as Answer" and Upvote if it helped, so that it can help others in the community looking for help on similar topics.
Thank you!