I have a simple application that receives and displays information from a data warehouse.
It works all over the place, but when I run it from within the Kubernetes Engine cluster, I get this output:
Error from Get()
rpc error: code = PermissionDenied desc = Request had insufficient authentication scopes.
Error from Put()
rpc error: code = PermissionDenied desc = Request had insufficient authentication scopes.
I am using the cloud.google.com/go/datastoreGo package and language.
I don’t know why I am getting this error, since the application works everywhere, just fine.
Update:
Looking for an answer, I found this comment on Google Groups:
To use Cloud Datastore from GCE, the instance must have several additional areas. They cannot be added to existing GCE instances, but you can create a new one using the following Cloud SDK command:
gcloud hello-datastore --project - zone --scope datastore userinfo-email
, Datastore GKE ?
2:
, ( ). , :

, CloudSQL , ( cloudsql_proxy).