Goutham P N
Goutham P N

Reputation: 65

Not able to delete kubernetes cluster in GKE

I'm getting this error when deleting a cluster from GKE.

Google Compute Engine: The subnetwork resource 'projects/abc-cluster-abc/regions/us-east1/subnetworks/sub-network-1' is already being used by 'projects/abc-cluster-abc/zones/us-east1-d/instances/gke-qa-cluster-pool-1-abc-xyz'

How to delete it? Please help us out.

Upvotes: 1

Views: 2978

Answers (2)

chiducaf
chiducaf

Reputation: 873

You can delete a GKE cluster by 2 simple ways

                  1. BY gcloud
                  2. BY Console

1.

            gcloud container clusters delete [CLUSTER_NAME]

2.

--> By choosing the cluster to select your gke cluster and select shutdown to Delete(or)Remove

Upvotes: -1

M.E Taame
M.E Taame

Reputation: 113

First, you’ll need to delete subnetwork “sub-network-1” as it’s used by node “gke-qa-cluster-pool-1-abc-xyz”.

Then you’ll be able to delete your cluster.

Feel free to share any error message to help you further in the comment section.

Upvotes: 0

Related Questions