This file should be available inside the metricbeat container, together with /var/run/secrets/kubernetes.io/serviceaccount/ca.crt, more details on it - here.
and also where I can obtain a cert to use in this line?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.