Linkerd distributed tracing with OpenCensus #5419
-
ContextI am trying to use OpenCensus and Linkerd. Questions
At the end (exactly 4th line from the last) of the the official docs, it says,
What does this mean?
For example, let's say I've configured the default namespace like this. apiVersion: v1
kind: Namespace
metadata:
name: default
annotations:
linkerd.io/inject: enabled
config.linkerd.io/trace-collector: my-opencensus-collector.ops:12345
config.alpha.linkerd.io/trace-collector-service-account: my-opencensus-collector-service-account
Which one would be right? config.alpha.linkerd.io/trace-collector-service-account: my-opencensus-collector-service-account or config.alpha.linkerd.io/trace-collector-service-account: my-opencensus-collector-service-account.ops Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
@jjangga0214 I think you should add the namespace to the annotation, so that the collector knows where to find the service account. The Linkerd proxy does need to be injected into the OpenCensus collector pod. I believe that this is because the traces are sent using the same mTLS provided by Linkerd for all meshed workloads, and that means that the proxies need to validate each other's identities. There may be more to it, but that's my basic understanding. |
Beta Was this translation helpful? Give feedback.
-
@cpretzer Thank you so much for the explantion! But what do you mean by the below?
In my case, the service account is on the same namespace from the collector, and the collector already knows the service account. Anyway, thank you @cpretzer again for the reply!! |
Beta Was this translation helpful? Give feedback.
-
@jjangga0214 What I mean to say is that I believe that this is the correct annotation, with the namespace included:
|
Beta Was this translation helpful? Give feedback.
-
hi @jjangga0214 did this configuration help answer the question? If so, would you mind marking the discussion as answered 😄 |
Beta Was this translation helpful? Give feedback.
@jjangga0214 I think you should add the namespace to the annotation, so that the collector knows where to find the service account.
The Linkerd proxy does need to be injected into the OpenCensus collector pod. I believe that this is because the traces are sent using the same mTLS provided by Linkerd for all meshed workloads, and that means that the proxies need to validate each other's identities. There may be more to it, but that's my basic understanding.