I am not able to delete a GKE cluster. I am getting the below error. Please assist.
Direct GKE operations are disallowed for clusters managed by Config Controller. Please use the corresponding product’s API to mutate the cluster.
I am not able to delete a GKE cluster. I am getting the below error. Please assist.
Direct GKE operations are disallowed for clusters managed by Config Controller. Please use the corresponding product’s API to mutate the cluster.
Hi shiv2,
Welcome to Google Cloud Community!
Deleting a Config Controller instance via the GKE API or the Google Cloud Console is unsupported in order to ensure that you can continue to receive Google Cloud Support services.
Before deleting a Config Connector instance, you must first remove all associated Config Connector resources. Deleting your Config Controller instance without first deleting the provisioned resources leaves the resources in an abandoned state. The resources still exist in Google Cloud (and incur billing charges), but are not managed from declarative configuration.
After all of your resources have been deleted, you should use the following command to delete Config Controller cluster:
gcloud anthos config controller delete NAME --location=us-central1
You can verify the config controller instance by using this gCloud command:
gcloud anthos config controller list --location=us-central1
Sample Output:
![]()
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.