403 “Request had insufficient authentication scopes” during gcloud container cluster get-credentials

后端 未结 4 928
眼角桃花
眼角桃花 2020-12-29 03:48

From a VM in GCE, I did the following

gcloud auth activate-service-account --key-file 
# \"blah\" is a service account key file (JSON) I generate         


        
4条回答
  •  一整个雨季
    2020-12-29 04:32

    To use the Google Kubernetes Engine API from a GCE virtual machine you need to add the cloud platform scope ("https://www.googleapis.com/auth/cloud-platform") to your VM when it is created.

提交回复
热议问题