Skip to content

Commit 203f1be

Browse files
ChrsMarkXinRanZhAWS
authored andcommitted
[receiver/kubeletstats] Add clarifications on serviceAccount auth type (open-telemetry#31280)
**Description:** <Describe what has changed.> <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> This PR adds some clarifications in the documentation of the `serviceAccount` auth type of the `kubeletstats` receiver. This is an outcome of the discussions at open-telemetry/opentelemetry-helm-charts#1034 (comment). Signed-off-by: ChrsMark <[email protected]>
1 parent 7ea4e27 commit 203f1be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

receiver/kubeletstatsreceiver/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ endpoint will be used if `auth_type` set to any of the following values:
3737
- `tls` tells the receiver to use TLS for auth and requires that the fields
3838
`ca_file`, `key_file`, and `cert_file` also be set.
3939
- `serviceAccount` tells this receiver to use the default service account token
40-
to authenticate to the kubelet API.
40+
to authenticate to the kubelet API along with the default certificate which is signed by the cluster's root CA cert:
41+
- `/var/run/secrets/kubernetes.io/serviceaccount/token`
42+
- `/var/run/secrets/kubernetes.io/serviceaccount/ca.crt`
4143
- `kubeConfig` tells this receiver to use the kubeconfig file (KUBECONFIG env variable or ~/.kube/config)
4244
to authenticate and use API server proxy to access the kubelet API.
4345
- `initial_delay` (default = `1s`): defines how long this receiver waits before starting.

0 commit comments

Comments
 (0)