# Metricbeat 7.4 Kubernetes crash on startup

**URL:** <https://discuss.elastic.co/t/metricbeat-7-4-kubernetes-crash-on-startup/205479>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [October 28, 2019, 1:47pm UTC](https://discuss.elastic.co/t/metricbeat-7-4-kubernetes-crash-on-startup/205479 "2019-10-28T13:47:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Jones](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@David\_Jones](https://discuss.elastic.co/u/David_Jones)\
**Post date:** [October 28, 2019, 1:47pm UTC](https://discuss.elastic.co/t/metricbeat-7-4-kubernetes-crash-on-startup/205479/1 "2019-10-28T13:47:28Z")

</div>

I've been trying to run metricbeat on kubernetes according to [the docs](https://www.elastic.co/guide/en/beats/metricbeat/current/running-on-kubernetes.html#running-on-kubernetes) but the singleton instance is crashing on startup.

[Instance Logs](https://pastebin.com/wvbKAubr)

[Deployment](https://pastebin.com/5W57nXGb)

The deployment is identical to the one given in the documentation, except for added auth credentials and adding replicasets permissions under the apps api groups.

It is worth noting that the replicaset works perfectly and sends just node information to elastic as intended

Kubernetes Version: 1.15.2  
kube-state-metrics Version: 1.8.0  
Metricbeat Version: 7.4.1

Thanks.

---

<div class="post-metadata">

**Author:** ![Mario\_Castro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_castro/32/35107_2.png) [@Mario\_Castro](https://discuss.elastic.co/u/Mario_Castro)\
**Post date:** [October 30, 2019, 9:37am UTC](https://discuss.elastic.co/t/metricbeat-7-4-kubernetes-crash-on-startup/205479/2 "2019-10-30T09:37:17Z")

</div>

Hi @David_Jones 🙂

I'm afraid that it might be some compatibility issue. Kubernetes module have been tested with 1.13.x and 1.14.x and I think we haven't tested Kube State Metrics 1.8 yet.

It seems that the error is a panic in the apimachinery library (interestingly, when trying to handle a panic). I can only suggest to update the library and compile Metricbeat again as a quick workaround to see if this solves the problem

---

<div class="post-metadata">

**Author:** ![Mario\_Castro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_castro/32/35107_2.png) [@Mario\_Castro](https://discuss.elastic.co/u/Mario_Castro)\
**Post date:** [October 30, 2019, 9:53am UTC](https://discuss.elastic.co/t/metricbeat-7-4-kubernetes-crash-on-startup/205479/3 "2019-10-30T09:53:17Z")

</div>

Having a quick look at our repo, it seems it might be a bug: [https://github.com/elastic/beats/issues/14320](https://github.com/elastic/beats/issues/14320)

---

<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:** [November 27, 2019, 10:07am UTC](https://discuss.elastic.co/t/metricbeat-7-4-kubernetes-crash-on-startup/205479/4 "2019-11-27T10:07:08Z")

</div>

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