Forrest logo
back to the kubectl tool

kubectl-rollout:tldr:2147f

kubectl-rollout: View the rollout history of a resource.
$ kubectl rollout history ${resource_type}/${resource_name}
try on your machine

The kubectl rollout history command is used to display the history of rollouts for a given Kubernetes resource.

The command takes two parameters:

  • ${resource_type}: This refers to the type of resource, such as deployment, statefulset, daemonset, etc.
  • ${resource_name}: This is the name of the specific resource for which you want to see the rollout history.

For example, if you want to see the rollout history of a deployment named my-deployment, you would run the command: kubectl rollout history deployment/my-deployment.

The command will display information about past rollouts of the specified resource, including the revision number, the date and time when the rollout was performed, and the reason for the rollout (e.g., scaling, configuration change, etc.).

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the kubectl tool