# Metricbeat fails to communicate with kubelet

**URL:** <https://discuss.elastic.co/t/metricbeat-fails-to-communicate-with-kubelet/164806>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [January 18, 2019, 1:46pm UTC](https://discuss.elastic.co/t/metricbeat-fails-to-communicate-with-kubelet/164806 "2019-01-18T13:46:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hohooss](https://avatars.discourse-cdn.com/v4/letter/h/eada6e/32.png) [@hohooss](https://discuss.elastic.co/u/hohooss)\
**Post date:** [January 18, 2019, 1:46pm UTC](https://discuss.elastic.co/t/metricbeat-fails-to-communicate-with-kubelet/164806/1 "2019-01-18T13:46:37Z")

</div>

Hello,

I installed the metricbeat (daemonset) on kubernetes by applying the [YAML files](https://github.com/elastic/beats/tree/master/deploy/kubernetes/metricbeat).  
The metricbeat PODs were installed successfully, but there is a communication issue between metricbeat and kubelet due to certificate at 10250 port.

```
metricset.name:node @timestamp:January 18th 2019, 14:35:20.016 metricset.module:kubernetes metricset.host:dev-k8s-node2:10250 metricset.rtt:8,391 error.message:error making http request: Get https://dev-k8s-node2:10250/stats/summary: x509: certificate signed by unknown authority beat.name:dev-k8s-node2 beat.hostname:dev-k8s-node2 beat.version:6.5.4 host.name:dev-k8s-node2 _id:-H70YGgB-Ffh-dxO2BpO _type:doc _index:metricbeat-6.5.4-2019.01.18 _score: -

```

I changed the ConfigMap by applying the following in order to establish the connectivity, but with no success:

hosts: ["https://${HOSTNAME}:10250"]  
bearer\_token\_file: /var/run/secrets/kubernetes.io/serviceaccount/token  
ssl.certificate\_authorities:  
- /var/run/secrets/kubernetes.io/serviceaccount/ca.crt

Is there any documentation about this?

thank you.

---

<div class="post-metadata">

**Author:** ![hohooss](https://avatars.discourse-cdn.com/v4/letter/h/eada6e/32.png) [@hohooss](https://discuss.elastic.co/u/hohooss)\
**Post date:** [January 22, 2019, 9:42am UTC](https://discuss.elastic.co/t/metricbeat-fails-to-communicate-with-kubelet/164806/2 "2019-01-22T09:42:34Z")

</div>

this was resolved by adding ssl.verification\_mode: "none" at the configmap.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 19, 2019, 9:42am UTC](https://discuss.elastic.co/t/metricbeat-fails-to-communicate-with-kubelet/164806/3 "2019-02-19T09:42:45Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
