Hi there,
Right now, I'm facing an issue with the delete function of a VPC network and K8s cluster.
I've removed every services connected to the and an error is displayed when I try to reach my action:
Operation type [delete] failed with message - The network resource 'projects/lzone-production-carmen/global/networks/airflow-vpc-network' is already being used by 'projects/lzone-production-carmen/zones/us-central1-f/instances/gk3-airflow-private-cluster-pool-2-b6c3057f-7mv9'
I am attempting to delete my Kubernetes cluster but am getting the same error:
Google Compute Engine: The subnetwork resource 'projects/lzone-production-carmen/regions/us-central1/subnetworks/airflow-vpc-network' is already being used by 'projects/lzone-production-carmen/zones/us-central1-f/instances/gk3-airflow-private-cluster-pool-2-b6c3057f-7mv9'.
Most of the k8s resources are gone so it's in a limbo state it seems.
Can anyone help aid in removal of both resources (or the k8s cluster so I can then remove the VPC).
Thank you.
Hello ,
You need to first delete the resources which are being used in VPC. Make sure no more resources are utilizing the networks and then finally delete the VPC.
Also, follow this URL https://cloud.google.com/knowledge/kb/vpc-network-deletion-fails-because-the-network-resource-is-alr...
Looks like your VPC is still tied to some K8s instances. Try deleting those instances first, then the K8s cluster, and finally the VPC.
Good luck!