How do `kubectl wait`, `rollout status` and `--dry-run=server` fit into safe automation?
AdvancedConceptExtending Kubernetes: Helm, CRDs, Operators & kubectl
Answer
kubectl wait --for=condition=Available deploy/web --timeout=120s blocks on conditions; rollout status tracks a rollout; --dry-run=server sends the request through admission and validation without persisting, catching webhook and schema errors that --dry-run=client cannot.
kubectl apply -f app.yaml --dry-run=server
kubectl wait --for=condition=Ready pod -l app=web --timeout=90s