How to use stackdriver trace for an already existing cluster on google cloud?

6/6/2019

So, I'm trying to use Stackdriver Trace for my existing Node.js microservices deployed on Google Kubernetes Engine.

I'm using this official documentation. In the documentation, we're asked to add the trace.append OAuth access scope when we create our cluster. However, I'm not creating my cluster at this time. Also, it is mentioned that "Note: You cannot change the access scopes of a cluster after creation."

If that is the case then how can i get my stackdriver trace to work on my already existing cluster?

-- Khadar111
gcloud
google-cloud-stackdriver
google-kubernetes-engine
stackdriver

1 Answer

6/7/2019

It's not possible to get Stackdriver Trace to work with an existing cluster if it doesn't have the correct scopes. There's a similar question here, they suggest:

if you can port your application on a new Google Container instance, you can always recreate a new cluster and enable the desired Stackdriver services/permissions on its configuration page.

-- Corinne White
Source: StackOverflow