kubernetes - 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>
解决方案
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.
推荐阅读
- powerbi - 在 Power BI DAX 中应用任何筛选器时总价值发生变化
- r - 使用来自另一个数据帧的 id 和时间戳创建特定的输出
- linux - 为什么在没有安装 devtmpfs 并记录时,我会从 ACPID 获得控制台输出?
- c# - 如何将自定义符号添加到正则表达式?DevExpress 掩码
- java - 获取 Java 中的所有异常并远程发送
- java - vscode中java扩展的Checkstyle
- javascript - 子类中的字段初始化发生在构造函数在父类中完成之后,在 javascript 中。这是设计使然吗?
- powershell - 使用 for 循环和启动进程调用 powershell 脚本的问题
- authentication - ActionFilterAttribute Identity.Name 中的 IHttpContextAccessor 为 Null
- javascript - node-serialport 新 SerialPort 选项的文档在哪里?