简体   繁体   中英

Prometheus Targets Errors

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

在此处输入图片说明

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

Thanks in advance

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM