Samir:
ok my last question before my exam. How can I use the --sort flag when I am printing out something with jsonpath. I did not get it
Samir:
for example answer is to sort nodes bei number or something
Samir:
than I would do something like kubectl get node -o=custom-columns=Name:SomeJsonPath --sort-by and then?
unnivkn:
# List Services Sorted by Name
kubectl get services --sort-by=.metadata.name
unnivkn:
refer cheat sheet. you have many there
Samir:
Aaaaaaaaaaaaaaah wow. Thank you
Samir:
So just another json path
Samir:
Thank you!!
Fernando Jimenez:
@Samir Good luck with the exam
Fernando Jimenez:
Think of this one as well.
kubectl top pod --sort-by=cpu