Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
该命令oc describe dc/backend仅显示最后三个部署。由于麻烦的推出,今天的最后三个部署是相同的代码。是否可以查看更长的部署历史,以便更轻松地查看我们想要部署的部署oc rollback backend --to-version=X?
oc describe dc/backend
oc rollback backend --to-version=X
首先,您需要使用 .从您的 deploymentConfig 资源中检查当前的 revisionHisoryLimit oc get dc/backend -o yaml。[0] 并根据您的需要进行编辑。
oc get dc/backend -o yaml
[0]无圈7[ https://docs.openshift.com/container-platform/3.9/dev_guide/deployments/how_deployments_work.html#creating-a-deployment-configuration]