Not able to delete kubernetes cluster in GKE

11/13/2018

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.

-- Goutham P N
google-kubernetes-engine
kubernetes

1 Answer

11/16/2018

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.

-- Taame Amine
Source: StackOverflow