Canonical: https://weaveos.com/reference/kubernetes/inspect-rollout-revisions

1. [Software capabilities](https://weaveos.com/reference)
2. /[Kubernetes](https://weaveos.com/reference/kubernetes)
3. /Inspect Kubernetes rollout revisions

[![](https://weaveos.com/reference/logos/kubernetes.svg)Kubernetes](https://weaveos.com/reference/kubernetes)

# Inspect Kubernetes rollout revisions

Use kubectl rollout history to see the revisions retained for a Deployment, DaemonSet, or StatefulSet. Select a revision when you need its change-cause metadata before deciding whether to roll back.

Documentation reviewed November 27, 2026 · 2 methods with sources

## Ways to do it

1. [1CLI: kubectl rollout history](https://weaveos.com/reference/kubernetes/inspect-rollout-revisions#method-1)
2. [2CLI: kubectl get ReplicaSets](https://weaveos.com/reference/kubernetes/inspect-rollout-revisions#method-2)

CLI

### kubectl rollout history

List retained revisions for a workload, or inspect one revision with --revision.

[Read source: kubectl rollout history reference](https://kubernetes.io/docs/reference/kubectl/generated/kubectl_rollout/kubectl_rollout_history/)

- Requirements

  kubectl configured for the target cluster and permission to read the workload and its rollout history.

- Limitations

  History is bounded by the workload's revision history limit. A revision number can disappear after older ReplicaSets are garbage-collected.

Example shell

Copy

```
kubectl rollout history "deployment/$DEPLOYMENT" -n "$NAMESPACE" --revision=3
```

CLI

### kubectl get ReplicaSets

List ReplicaSets and compare their controller owner and revision annotation to the Deployment.

[Read source: Kubernetes rollout revision annotations](https://kubernetes.io/docs/reference/labels-annotations-taints/#deployment-kubernetes-io-revision)

- Requirements

  kubectl configured for the cluster and permission to list ReplicaSets in the namespace.

- Limitations

  Several workloads can share the same app label. Match controller owner UID to the Deployment UID before using the revision.

Example shell

Copy

```
kubectl get replicasets -n "$NAMESPACE" -l app="$APP_LABEL" -o 'custom-columns=NAME:.metadata.name,OWNER:.metadata.ownerReferences[?(@.controller==true)].uid,REVISION:.metadata.annotations.deployment\.kubernetes\.io/revision'
```

[Previous Kubernetes taskRead logs from a restarted Kubernetes container](https://weaveos.com/reference/kubernetes/read-previous-container-logs)

## More from Kubernetes

[View all 2 Kubernetes tasks](https://weaveos.com/reference/kubernetes)
