# Kubernetes example not working

**URL:** <https://discuss.elastic.co/t/kubernetes-example-not-working/128861>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 20, 2018, 10:57am UTC](https://discuss.elastic.co/t/kubernetes-example-not-working/128861 "2018-04-20T10:57:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonas\_Scherer](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@Jonas\_Scherer](https://discuss.elastic.co/u/Jonas_Scherer)\
**Post date:** [April 20, 2018, 10:57am UTC](https://discuss.elastic.co/t/kubernetes-example-not-working/128861/1 "2018-04-20T10:57:32Z")

</div>

Hey,

if I try the standard [Kubernetes example](https://github.com/elastic/beats/blob/master/deploy/kubernetes/filebeat-kubernetes.yaml) of filebeats,  
I get this error:

> Error: failed to prepare subPath for volumeMount "config" of container "filebeat"

Does anyone have a solution to this problem?  
Thank you!

filebeat: 6.2.4  
Kubernets: v1.9.3

---

<div class="post-metadata">

**Author:** ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)\
**Post date:** [April 20, 2018, 11:15am UTC](https://discuss.elastic.co/t/kubernetes-example-not-working/128861/2 "2018-04-20T11:15:23Z")

</div>

Hi @Jonas_Scherer,

I think you are hitting a bug in Kubernetes that popped up recently, more details here: [https://github.com/kubernetes/kubernetes/issues/61076](https://github.com/kubernetes/kubernetes/issues/61076).

They suggest to mount the full configmap and then take the file from there. Upgrading to `1.9.5` should fix the issue too

Best regards

---

<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:** [May 18, 2018, 1:15pm UTC](https://discuss.elastic.co/t/kubernetes-example-not-working/128861/3 "2018-05-18T13:15:47Z")

</div>

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