GKE Kubernetes permission denied

7/5/2017

Trying to delete a cluster with:

gcloud container clusters delete load-cluster

Output:

The following clusters will be deleted.
 - [load-cluster] in [us-east1-b]

Do you want to continue (Y/n)?  y

Deleting cluster load-cluster...done.
ERROR: (gcloud.container.clusters.delete) Could not create directory [C:\WINDOWS\system32\config\systemprofile\.kube]: Permission denied.

Please verify that you have permissions to write to the parent directory.

Weird part is, it actually gets deleted when I check Google Cloud, but this bug is driving me up the wall.

-- Jackery Xu
gcloud
google-kubernetes-engine
kubernetes

0 Answers