Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Modify Kubernetes Deployment revision history limit

How would we modify the default history limit in kubernetes. At this point, the default history limit is 3 revisions. I would like to increase this by 10.

I use the below command to get the revision history

kubectl rollout history deployment <deployment name>

like image 419
Gowtham Avatar asked Sep 05 '25 03:09

Gowtham


1 Answers

OK, I found the answer to this.

Every Deployment has its own revision limit stored in its replica set in this field .spec.revisionHistoryLimit. The respective replica set needs to be updated in order to change the revision limit.

like image 150
Gowtham Avatar answered Sep 07 '25 20:09

Gowtham