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=60mCopy to Clipboard Copied! Toggle word wrap Toggle overflow 実際に prune 操作を実行するには、
--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 --confirmCopy to Clipboard Copied! Toggle word wrap Toggle overflow