Because Time Management is crucial during CKAD exam I am looking for way to get definition of running pod, but without properties which have default values (clutter).
I found this https://github.com/itaysk/kubectl-neat , but it is additional tool.
Do you have any suggestions?
Vim has a build in search . That is all we need .
Thank you for your answer.
Vim search is great in fast searching for particular property value, but it doesn’t help in fast exploration of which resource properties has been set during resource creating.
I thought that ‘vimdiff <explored-pod-definition> <default-pod-definition>’ might be helpful in this usecase, but it requires <default-pod> in cluster which should be a pod with a minimal definition (only name and image, others properties should be default).
I will be grateful to see other suggestions.
For the exam basic grep nd search built within vim was good enough… I didn’t have a need for anything else …
Thx for sharing your experience.
If there will be no other suggestions then I will stick with yours: vim search + grep
some commands that might be of assistance to you
kubectl top node --sort-by=‘memory’ --no-headers | head -1