Warm tip: This article is reproduced from stackoverflow.com, please click
kubernetes prometheus

Prometheus Targets Errors

发布于 2020-04-13 09:54:38

I am trying to retrieve information from Prometheus to the rest of the nodes of my cluster of Kubernetes.

enter image description here

I suspect the error is here and I don't know how to fix it.

Thanks in advance

Questioner
Al3jandro 98
Viewed
50
Al3jandro 98 2020-02-03 15:37

The solution is simple, my problem was related to SSL, all I have done is skip the ssl and it works only with http.

To me putting the tsl_config section with this, the jobs that failed already work correctly for me:

tls_config:
      ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
      insecure_skip_verify: true
    bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token

The important thing is this: insecure_skip_verify: true and the indentation that has to be as it is above.