Operating system version when running inside Kubernetes daemonset

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 .

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