A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/delete-cluster below:

Delete a cluster | GKE on AWS

Delete a cluster

Stay organized with collections Save and categorize content based on your preferences.

This page explains how to delete a node pool and a cluster.

Warning: Soon after you delete a Google Cloud project, the resources in AWS are permanently deleted. To safeguard against the accidental deletion of a Google Cloud project, use a Project lien. Delete a node pool

To delete a cluster, you must first delete all of its node pools.

Console
  1. In the Google Cloud console, go to the Google Kubernetes Engine clusters overview page.

    Go to GKE clusters

  2. Select the Google Cloud project that the cluster is in.

  3. In the cluster list, select the name of the cluster, and then select View details in the side panel.

  4. Select the Nodes tab to see a list of all the node pools.

  5. Select a node pool from the list.

  6. Near the top of the window, click delete Delete.

    If the delete fails, follow the steps in the gcloud tab and add the --ignore-errors flag to the gcloud container aws node-pools delete command.

gcloud
  1. Get a list of your node pools:

    gcloud container aws node-pools list \
      --cluster CLUSTER_NAME \
      --location GOOGLE_CLOUD_LOCATION
    

    Replace the following:

  2. For each of your node pools, delete it with the following command:

    gcloud container aws node-pools delete NODE_POOL_NAME \
      --cluster CLUSTER_NAME \
      --location GOOGLE_CLOUD_LOCATION
    

    Replace the following:

    If the command returns an error and the delete fails, you can force the deletion by running the command again with the --ignore-errors flag. This flag is available in version 1.29 and later.

    Caution: Adding the --ignore-errors flag to the delete command might result in orphaned AWS resources. If that happens, consult the AWS documentation on how to remove the orphaned resources.
How GKE on AWS protects workloads during node pool deletion

During node pool deletion, GKE on AWS performs graceful shut down on each node without honoring PodDisruptionBudget. It takes the following steps:

  1. Disable cluster autoscaler if it was enabled.
  2. Set up a deadline for the draining process. After this deadline, even if there are still Pod objects existing, GKE on AWS stops draining and proceeds to deleting underlying virtual machines. The default deadline is 5 minutes. For every 10 more nodes, 5 more minutes is added.
  3. Cordon all the nodes in the node pool.
  4. Before deadline is met, delete Pod objects in the node pool with best efforts.
  5. Delete all the underlying compute resources.
Delete a cluster

Before deleting a cluster, make sure that you have deleted all of its node pools.

Note: To delete a cluster, you must have the GKE Multi-Cloud API role configured to allow the GKE Multi-Cloud API to manage your cluster resources. If this role is not properly configured, GKE Enterprise cannot delete the associated resources. Console
  1. In the Google Cloud console, go to the Google Kubernetes Engine clusters overview page.

    Go to GKE clusters

  2. Select the Google Cloud project that the cluster is in.

  3. In the cluster list, select the name of the cluster, and then select View details in the side panel.

  4. Near the top of the window, click delete Delete.

    If the delete fails, follow the steps in the gcloud tab and add the --ignore-errors flag to the gcloud container aws clusters delete command.

gcloud

To delete a cluster, run the following command:

gcloud container aws clusters delete CLUSTER_NAME \
    --location GOOGLE_CLOUD_LOCATION

Replace the following:

What's next

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-07 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4