Hi!
You can define your related configuration in Metricbeat's k8s manifests similarly to what we do in order to configure the output at https://github.com/elastic/beats/blob/751a1d3eb31bf2cb35d39517e2f39c2b36a94a6c/deploy/kubernetes/metricbeat/metricbeat-deployment-configmap.yaml#L22.
C.