Kubernetes sort pods by age

前端 未结 5 925
日久生厌
日久生厌 2021-01-30 05:02

I can sort my Kubernetes pods by name using:

kubectl get pods --sort-by=.metadata.name

How can I sort them (or other resoures) by age using

5条回答
  •  无人及你
    2021-01-30 05:33

    I have created KUBESORT exactly for these kinds of sorting purposes.
    Pls have a try,

    https://github.com/AATHITH/kubesort

提交回复
热议问题