CICD-175 · Read available deployment revisions
Encyclopedia · Deployment and rollback · All snippets
Previous · CICD-174 · Next · CICD-176
1. Where it fits
- Placement Bash run step following checkout, or equivalent lab terminal.
- Prerequisites protected staging environment and trusted immutable release artifacts.
- Platforms kubernetes, local-lab.
2. Copy the snippet
bash
kubectl -n staging rollout history deployment/web3. How it works
The Deployment controller records revisions as Pod templates change. The history output helps identify restorable versions and must be cross-checked against application and data state.
4. Verify the result
Keep revision history enabled and save image digests separately.
Validation syntax-validated (Bash parse). Status definitions.