Skip to content

Commit 225f20c

Browse files
authored
Merge pull request #40320 from logicalhan/tracing-docs
update APIServerTracing docs
2 parents d711b75 + 66906fd commit 225f20c

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

content/en/docs/concepts/cluster-administration/system-traces.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ weight: 90
99

1010
<!-- overview -->
1111

12-
{{< feature-state for_k8s_version="v1.22" state="alpha" >}}
12+
{{< feature-state for_k8s_version="v1.27" state="beta" >}}
1313

1414
System component traces record the latency of and relationships between operations in the cluster.
1515

@@ -59,22 +59,20 @@ as the kube-apiserver is often a public endpoint.
5959
6060
#### Enabling tracing in the kube-apiserver
6161
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
6563
with `--tracing-config-file=<path-to-config>`. This is an example config that records
6664
spans for 1 in 10000 requests, and uses the default OpenTelemetry endpoint:
6765

6866
```yaml
69-
apiVersion: apiserver.config.k8s.io/v1alpha1
67+
apiVersion: apiserver.config.k8s.io/v1beta1
7068
kind: TracingConfiguration
7169
# default value
7270
#endpoint: localhost:4317
7371
samplingRatePerMillion: 100
7472
```
7573

7674
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).
7876

7977
### kubelet traces
8078

content/en/docs/reference/command-line-tools-reference/feature-gates.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ For a reference to old feature gates that are removed, please refer to
6565
| `APISelfSubjectReview` | `false` | Alpha | 1.26 | |
6666
| `APIServerIdentity` | `false` | Alpha | 1.20 | 1.25 |
6767
| `APIServerIdentity` | `true` | Beta | 1.26 | |
68-
| `APIServerTracing` | `false` | Alpha | 1.22 | |
68+
| `APIServerTracing` | `false` | Alpha | 1.22 | 1.26 |
69+
| `APIServerTracing` | `true` | Beta | 1.27 | |
6970
| `AggregatedDiscoveryEndpoint` | `false` | Alpha | 1.26 | |
7071
| `AnyVolumeDataSource` | `false` | Alpha | 1.18 | 1.23 |
7172
| `AnyVolumeDataSource` | `true` | Beta | 1.24 | |

0 commit comments

Comments
 (0)