Search code examples
google-cloud-platformgoogle-kubernetes-enginestackdriver

Stackdriver Trace on GKE 403


I have a GKE cluster with "https://www.googleapis.com/auth/trace.append" scope enabled.

node.js client library is used as the first line as written in the docs. I get 403.

ERROR:@google-cloud/trace-agent: TraceWriter: error: 403 ApiError: The caller does not have permission


Solution

  • Did you add the trace.append OAuth scope when creating the cluster as the docs describe?

    gcloud container clusters create example-cluster-name --scopes https://www.googleapis.com/auth/trace.append