@@ -9,7 +9,7 @@ weight: 90
9
9
10
10
<!-- overview -->
11
11
12
- {{< feature-state for_k8s_version="v1.22 " state="alpha " >}}
12
+ {{< feature-state for_k8s_version="v1.27 " state="beta " >}}
13
13
14
14
System component traces record the latency of and relationships between operations in the cluster.
15
15
@@ -59,22 +59,20 @@ as the kube-apiserver is often a public endpoint.
59
59
60
60
#### Enabling tracing in the kube-apiserver
61
61
62
- To enable tracing, enable the ` APIServerTracing`
63
- [feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
64
- on the kube-apiserver. Also, provide the kube-apiserver with a tracing configuration file
62
+ To enable tracing, provide the kube-apiserver with a tracing configuration file
65
63
with ` --tracing-config-file=<path-to-config>`. This is an example config that records
66
64
spans for 1 in 10000 requests, and uses the default OpenTelemetry endpoint :
67
65
68
66
` ` ` yaml
69
- apiVersion: apiserver.config.k8s.io/v1alpha1
67
+ apiVersion: apiserver.config.k8s.io/v1beta1
70
68
kind: TracingConfiguration
71
69
# default value
72
70
#endpoint: localhost:4317
73
71
samplingRatePerMillion: 100
74
72
` ` `
75
73
76
74
For more information about the `TracingConfiguration` struct, see
77
- [API server config API (v1alpha1 )](/docs/reference/config-api/apiserver-config.v1alpha1 /#apiserver-k8s-io-v1alpha1 -TracingConfiguration).
75
+ [API server config API (v1beta1 )](/docs/reference/config-api/apiserver-config.v1beta1 /#apiserver-k8s-io-v1beta1 -TracingConfiguration).
78
76
79
77
# ## kubelet traces
80
78
0 commit comments