Kubectl Tip #3

sort pod cpu and memory usage

Update

Not sure how I missed this one, but this functionality exists directly in kubectl with:

kubectl top po -A --sort-by=cpu

Thanks to emmanuel Gelati Mesa for pointing that out. I’ll leave the original tip here in case you anyone finds the tail or sort part out useful for other…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store