I was wondering if it's possible/how to set the policy that an Elastic Agent on ECK uses when managed by fleet? I wasn't able to find anything in the ECK Elastic Agent Fleet docs that mentioned how to set the enrollment token of the policy I want the agent to use.
For this we defer to Elastic Agent docs, but it is definitely possible. Just set FLEET_ENROLLMENT_TOKEN env variable to your token in the agent container of Elastic Agent, similar to below.
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.