# Operating system version when running inside Kubernetes daemonset

**URL:** <https://discuss.elastic.co/t/operating-system-version-when-running-inside-kubernetes-daemonset/385099>\
**Category:** Beats\
**Tags:** docker, metricbeat\
**Created:** [February 18, 2026, 4:36pm UTC](https://discuss.elastic.co/t/operating-system-version-when-running-inside-kubernetes-daemonset/385099 "2026-02-18T16:36:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![melkamar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/melkamar/32/100785_2.png) [@melkamar](https://discuss.elastic.co/u/melkamar)\
**Post date:** [February 18, 2026, 4:36pm UTC](https://discuss.elastic.co/t/operating-system-version-when-running-inside-kubernetes-daemonset/385099/1 "2026-02-18T16:36:36Z")

</div>

Hello,

I am running metricbeat inside a Kubernetes cluster as a DaemonSet based on the manifest yaml [https://raw.githubusercontent.com/elastic/beats/8.19/deploy/kubernetes/metricbeat-kubernetes.yaml](https://raw.githubusercontent.com/elastic/beats/8.19/deploy/kubernetes/metricbeat-kubernetes.yaml) .

However, the output I get for e.g. the host.os.version is incorrect. The OS version reported is that of the container where metricbeat is running, but I would expect to see the host node version.

I tried mounting `/etc/os-release` under `/hostfs/etc/os-release` to try, but that made no change. What is the correct configuration to get the actual host metrics?

Thank you
