This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.10.3. 배포 리소스 정리
수명 및 상태로 인해 시스템에서 더 이상 필요하지 않은 배포와 관련된 리소스를 정리할 수 있습니다.
다음 명령은 DeploymentConfig 오브젝트
와 관련된 복제 컨트롤러를 정리합니다.
oc adm prune deployments [<options>]
$ oc adm prune deployments [<options>]
옵션 | 설명 |
---|---|
| 시험 실행하는 대신 정리를 수행해야 함을 나타냅니다. |
|
|
|
|
|
현재 시간을 기준으로 < |
|
더 이상 |
프로세스
정리 작업에서 삭제하는 내용을 확인하려면 다음 명령을 실행합니다.
oc adm prune deployments --orphans --keep-complete=5 --keep-failed=1 \ --keep-younger-than=60m
$ oc adm prune deployments --orphans --keep-complete=5 --keep-failed=1 \ --keep-younger-than=60m
Copy to Clipboard Copied! 실제로 정리 작업을 수행하려면
--confirm
플래그를 추가합니다.oc adm prune deployments --orphans --keep-complete=5 --keep-failed=1 \ --keep-younger-than=60m --confirm
$ oc adm prune deployments --orphans --keep-complete=5 --keep-failed=1 \ --keep-younger-than=60m --confirm
Copy to Clipboard Copied!