Kubernetes / Deployments, Scheduling & Batch Workloads
Review Deployment history before choosing a rollback target
A rollback needs the correct application revision and compatible external state. Inspect retained controller history first.
Environment and inputs: Kubernetes · kubectl with supported client/server versions and delegated RBAC. Examples use namespace app unless noted. Check context, namespace, APIs and provider support first.
Start with this check
Check which system and tools you are using. Replace example objects, namespaces, images, file paths and hosts with approved values. Remove sensitive information before sharing output. Follow the application owner’s process for changes.
kubectl -n app rollout history deployment/web
What the results mean
The history shows retained revisions, subject to revision limits and annotations. It does not back up ConfigMaps, Secrets, persistent data or database migrations.
Fix the cause and check again
Compare the candidate revision with the approved release and external dependencies. Plan a reviewed rollback and verify business behavior afterward.
Before changing production
Do not assume reverting a Pod template reverses every effect of a deployment.