kubectl apply -f - |
sends the manifests; returns when the API server stored them |
the deploy job |
kubectl rollout status deployment/api |
waits until the new pods are ready and the old ones gone; ends with 1 at --timeout |
the deploy job; "is it done?" |
kubectl get deployment api -o wide |
ready count and the wanted image |
"which commit runs here?" |
kubectl get pods -l app=api |
each pod: ready or not, restarts, age |
a rollout that does not finish |
kubectl describe pod <name> |
the events of one pod: image pull, probe failures, quota |
the reason a pod is not ready |
kubectl logs <pod>, --previous |
the container's output; of the crashed container before a restart |
a pod that restarts |
kubectl rollout history deployment/api |
the revisions the Deployment keeps, 10 by default |
before an undo |
kubectl rollout undo deployment/api --to-revision=N |
back to the previous or to a named revision; the pods of that revision's template start |
a broken version, now |
kubectl set image deployment/api service=<image> |
changes the image without a manifest; a new revision |
a deploy or a rollback by hand, to a known tag |
kubectl scale deployment/api --replicas=3 |
more or fewer pods of the same version |
load; a test of a rolling update |