k8s按照创建顺序展示pod

# 时间从小到大
kubectl get po --sort-by={metadata.creationTimestamp} --no-headers | tac

# 时间从大到小
kubectl get po --sort-by={metadata.creationTimestamp}

 

posted @ 2022-06-21 19:02  Shiyu_Huang  阅读(159)  评论(0编辑  收藏  举报