<p>I tried <code>kubectl rollout history deployment/my-app</code>, it returns only <code>No rollout history found.</code></p>

<p>I think there exists a method to get all the deploy histories. It will be very helpful.</p>

<p>Reference official document: <a href="https://kubernetes.io/docs/concepts/workloads/controllers/deployment/" rel="noreferrer">https://kubernetes.io/docs/concepts/workloads/controllers/deployment/</a></p>

zseikyocho
<p>Use <code>--record</code> while creating the deployment so that it will start recroding the deployment into the ReplicaSet.</p>

<pre><code>$ kubectl create -f deploy.yaml --record=true
</code></pre>

<p>Whenever you deploy new version of deployment, the replica set preserves the previous configuration of the deployment. Check the track of deployment and even we can use this for automation. This should be the default option in the kuberentes deployment, but, by default it's set to false.</p>

<p>Then check the status and history using the below commands,</p>

<pre><code>$ kubectl rollout status deploy myapp-deployment
$ kubectl rollout history deploy myapp-deployment
</code></pre>

<p>Hope this helps. </p>
