0
votes

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)

1

1 Answers

1
votes

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?