I have simple user class doing a create and update in Datastore. It's running fine locally, but when I deploy it on Kubernetes, it provides me with the below response:
{
"timestamp": 1525833559351,
"status": 500,
"error": "Internal Server Error",
"exception": "com.google.cloud.datastore.DatastoreException",
"message": "Request had insufficient authentication scopes.",
"path": "/api/test/sample/5629499534213120"
}
For reference, I have followed this Stack Overflow link.