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

<p><a href="https://i.stack.imgur.com/5zHQR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5zHQR.png" alt="enter image description here"></a></p>

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

<p>Thanks in advance</p>

Alejandro López
<p>The solution is simple, my problem was related to SSL, all I have done is skip the ssl and it works only with http.</p>

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

<pre><code>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
</code></pre>

<p>The important thing is this: <strong>insecure_skip_verify: true</strong> and the indentation that has to be as it is above.</p>
