From 203f1beb3efdc72fba1039c0e1569142b9bcf3d1 Mon Sep 17 00:00:00 2001 From: Chris Mark Date: Wed, 21 Feb 2024 19:06:29 +0200 Subject: [PATCH] [receiver/kubeletstats] Add clarifications on serviceAccount auth type (#31280) **Description:** 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 https://github.com/open-telemetry/opentelemetry-helm-charts/pull/1034#discussion_r1489681010. Signed-off-by: ChrsMark --- receiver/kubeletstatsreceiver/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/receiver/kubeletstatsreceiver/README.md b/receiver/kubeletstatsreceiver/README.md index 89d85a888d25..b81574c995e2 100644 --- a/receiver/kubeletstatsreceiver/README.md +++ b/receiver/kubeletstatsreceiver/README.md @@ -37,7 +37,9 @@ endpoint will be used if `auth_type` set to any of the following values: - `tls` tells the receiver to use TLS for auth and requires that the fields `ca_file`, `key_file`, and `cert_file` also be set. - `serviceAccount` tells this receiver to use the default service account token -to authenticate to the kubelet API. +to authenticate to the kubelet API along with the default certificate which is signed by the cluster's root CA cert: + - `/var/run/secrets/kubernetes.io/serviceaccount/token` + - `/var/run/secrets/kubernetes.io/serviceaccount/ca.crt` - `kubeConfig` tells this receiver to use the kubeconfig file (KUBECONFIG env variable or ~/.kube/config) to authenticate and use API server proxy to access the kubelet API. - `initial_delay` (default = `1s`): defines how long this receiver waits before starting.