add_kubernetes_metadata is enabled by default in the reference configuration mentioned on this link, so if you are using this configuration you don't need to add anything else.
This reference configuration also contains instructions about hints-based autodiscover. When using this, same metadata is added without needing to use add_kubernetes_metadata.
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.