Show rollout history

Lists all revisions with the change cause; the cause is filled only with --record or an annotation

kubectl rollout history deployment/<name> -n <ns>

tool
kubectl73 commands
tags
deployments

More kubectl commands

  • kubectl rollout restart deployment/<name> -n <ns>

    Restarts pods one by one without downtime and without changing the spec

  • kubectl create namespace <ns>

    Creates a new namespace; with --dry-run=client | apply it becomes idempotent

  • kubectl set resources deployment/<name> -c <container> --requests=cpu=100m,memory=128Mi --limits=cpu=500m,memory=512Mi -n <ns>

    Changes requests and limits of a running deployment without editing YAML

  • kubectl run tmp --image=nicolaka/netshoot -it --rm --restart=Never -n <ns> -- bash

    Temporary pod for debugging; deleted when you exit

  • kubectl get nodes --show-labels

    Lists all labels on each node

all 73 kubectl commands