docs(inputs.kube_inventory): update k3s integration guide (#12285)

This commit is contained in:
Jörg Thalheim 2022-11-28 16:15:27 +01:00 committed by GitHub
parent 63c8a7861e
commit 2e99a1258e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -164,9 +164,8 @@ generated administration token. This is less secure than using the more
restrictive dedicated telegraf user but more convienient to set up.
```console
# an empty token will make telegraf use the client cert/key files instead
$ touch /run/telegraf-kubernetes-token
# replace `telegraf` with the user the telegraf process is running as
$ install -o telegraf -m400 /var/lib/rancher/k3s/server/token /run/telegraf-kubernetes-token
$ install -o telegraf -m400 /var/lib/rancher/k3s/server/tls/client-admin.crt /run/telegraf-kubernetes-cert
$ install -o telegraf -m400 /var/lib/rancher/k3s/server/tls/client-admin.key /run/telegraf-kubernetes-key
```