telegraf for k8s collectiom data ERR

11/11/2021
[inputs.kubernetes] Error in plugin: https://0.0.0.0:10250/stats/summary returned HTTP status 403 Forbidden

deploy telegraf in k8s,the config is that

[[inputs.kubernetes]]
  url = "https://0.0.0.0:10250"
  bearer_token = "/var/run/secrets/kubernetes.io/serviceaccount/token"
  insecure_skip_verify = true 

i have try change 0.0.0.0 to 127.0.0.1 but also ERR

and /var/run/secrets/kubernetes.io/serviceaccount/token is right

k8s version v1.20.6 telegraf 1.20

-- donghongwei
kubernetes
telegraf

0 Answers