简体   繁体   中英

Kubernetes kubectl - List pods of latest rollout

Question related to get one of new pod name after kubectl rollout status | kubectl get pods --field-selector returns Terminating pods

In this question I've asked about how to filter out terminated pods from list of all pods of deployment - which is still valid - but I've realised that maybe I've asked wrong questions and it should be:

How to list pods of latest rollout of deployment using kubectl? (Or list pods of particular rollout given by rollout number? If there would be unified way to achieve both)

This might not be relevant but at work we use grafana and it captures events in our kubernetes clusters. Those events can be filtered by deployment id so it's easy to see what pods have been deployed and their new state. Perhaps there are kubectl commands to view events and filter them in a particular way?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM