此内容没有您所选择的语言版本。

Chapter 11. Uninstalling a cluster on IBM Cloud


You can remove a cluster that you deployed to IBM Cloud®.

You can remove a cluster that uses installer-provisioned infrastructure that you provisioned from your cloud platform.

Note

After uninstallation, check your cloud provider for any resources that were not removed properly, especially with user-provisioned infrastructure clusters. Some resources might exist because either the installation program did not create the resource or could not access the resource.

Prerequisites

  • You have a copy of the installation program that you used to deploy the cluster.
  • You have the files that the installation program generated when you created your cluster.
  • You have configured the ccoctl binary.
  • You have installed the IBM Cloud® CLI and installed or updated the VPC infrastructure service plugin. For more information see "Prerequisites" in the IBM Cloud® CLI documentation.

Procedure

  1. If the following conditions are met, this step is required:

    • The installer created a resource group as part of the installation process.
    • You or one of your applications created persistent volume claims (PVCs) after the cluster was deployed.

      In which case, the PVCs are not removed when uninstalling the cluster, which might prevent the resource group from being successfully removed. To prevent a failure:

      1. Log in to the IBM Cloud® using the CLI.
      2. To list the PVCs, run the following command:

        $ ibmcloud is volumes --resource-group-name <infrastructure_id>
        Copy to Clipboard Toggle word wrap

        For more information about listing volumes, see the IBM Cloud® CLI documentation.

      3. To delete the PVCs, run the following command:

        $ ibmcloud is volume-delete --force <volume_id>
        Copy to Clipboard Toggle word wrap

        For more information about deleting volumes, see the IBM Cloud® CLI documentation.

  2. Export the API key that was created as part of the installation process.

    $ export IC_API_KEY=<api_key>
    Copy to Clipboard Toggle word wrap
    Note

    You must set the variable name exactly as specified. The installation program expects the variable name to be present to remove the service IDs that were created when the cluster was installed.

  3. From the directory that has the installation program on the computer that you used to install the cluster, run the following command:

    $ ./openshift-install destroy cluster \
    --dir <installation_directory> --log-level info 
    1
     
    2
    Copy to Clipboard Toggle word wrap
    1
    For <installation_directory>, specify the path to the directory that you stored the installation files in.
    2
    To view different details, specify warn, debug, or error instead of info.
    Note

    You must specify the directory that includes the cluster definition files for your cluster. The installation program requires the metadata.json file in this directory to delete the cluster.

  4. Remove the manual CCO credentials that were created for the cluster:

    $ ccoctl ibmcloud delete-service-id \
        --credentials-requests-dir <path_to_credential_requests_directory> \
        --name <cluster_name>
    Copy to Clipboard Toggle word wrap
    Note

    If your cluster uses Technology Preview features that are enabled by the TechPreviewNoUpgrade feature set, you must include the --enable-tech-preview parameter.

  5. Optional: Delete the <installation_directory> directory and the OpenShift Container Platform installation program.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat