简体   繁体   中英

Is there a step by step instruction to enable tracing of kubernetes components?

I'm running Kubernetes version v1.24.0, trying to enable tracing in Kubernetes components and so I can instrument my custom controller to work with tracing. However, the instruction https://kubernetes.io/docs/concepts/cluster-administration/system-traces/#trace-collection is very high level to me. Is there any other detailed instruction on how to enable tracing?

Note: I'm not looking for tracing on applications running in K8s env instead kubernetes components like kube-api-server, controller, kube-manager...

What I've done so far: I've started k8s-api-server with below two args

--feature-gates=APIServerTracing=true
--tracing-config-file=/tmp/tracing.conf

once the api-server pod is up and running, should I able to see traces when creating a pod in the api-server pod logs? I just see usual logs, nothing specific to tracing. what am I missing?

I tried deploying opentelemetry collector as mentioned at https://opentelemetry.io/docs/collector/getting-started/#kubernetes but

Appreciate your suggestions!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2023 STACKOOM.COM