View rendered machine configs
You can view a list of rendered machine configs by using the oc adm prune renderedmachineconfigs command with the list subcommand to determine which objects you can remove.
For example, the command in the following procedure would list all rendered machine configs for the worker machine config pool.
-
Optional: List the rendered machine configs by using the following command:
$ oc adm prune renderedmachineconfigs list --in-use=false --pool-name=workerwhere:
- list
-
Displays a list of rendered machine configs in your cluster.
--in-use-
Optional: Specifies whether to display only the used machine configs or all machine configs from the specified pool. If
true, the output lists the rendered machine configs that are being used by a machine config pool. Iffalse, the output lists all rendered machine configs in the cluster. The default value isfalse. --pool-name-
Optional: Specifies the machine config pool from which to display the machine configs.
Example outputworker rendered-worker-f38bf61ced3c920cf5a29a200ed43243 -- 2025-01-21 13:45:01 +0000 UTC (Currently in use: false) rendered-worker-fc94397dc7c43808c7014683c208956e-- 2025-01-30 17:20:53 +0000 UTC (Currently in use: false) rendered-worker-708c652868f7597eaa1e2622edc366ef -- 2025-01-31 18:01:16 +0000 UTC (Currently in use: true) -
List the rendered machine configs that you can remove automatically by running the following command. Any rendered machine config marked with the
as it’s currently in usemessage in the command output cannot be removed.$ oc adm prune renderedmachineconfigs --pool-name=workerThe command runs in dry-run mode, and no machine configs are removed.
where:
--pool-name-
Optional: Displays the machine configs in the specified machine config pool.
Example outputDry run enabled - no modifications will be made. Add --confirm to remove rendered machine configs. dry-run deleting rendered MachineConfig rendered-worker-f38bf61ced3c920cf5a29a200ed43243 dry-run deleting MachineConfig rendered-worker-fc94397dc7c43808c7014683c208956e Skip dry-run deleting rendered MachineConfig rendered-worker-708c652868f7597eaa1e2622edc366ef as it's currently in use