Uninstalling a cluster on GCP
You can remove a cluster that uses installer-provisioned infrastructure from your cloud.
Prerequisites
You have a copy of the installation program that you used to deploy the cluster.
From the directory that contains the installation program on the computer that you used to install the cluster, run the following command:
Optional: Delete the
<installation_directory>
directory and the OKD installation program.
Deleting GCP resources with the Cloud Credential Operator utility
To clean up resources after uninstalling an OKD cluster with the Cloud Credential Operator (CCO) in manual mode with GCP Workload Identity, you can use the CCO utility (ccoctl
) to remove the GCP resources that ccoctl
created during installation.
Prerequisites
Procedure
Obtain the OKD release image by running the following command:
Extract the list of custom resources (CRs) from the OKD release image by running the following command:
Delete the GCP resources that
ccoctl
created: