I have tried mounting it with both a secret and as a raw value.
With output.elasticsearch.password: ${ELASTICSEARCH_PASSWORD} i get error:
ERROR instance/beat.go:743 Exiting: error initializing publisher: can not convert 'object' into 'string' accessing 'output.elasticsearch.password' (source:'/etc/filebeat.yml')
I've seen this problem outside of kubernetes, can you try starting Filebeat locally with the same config and same password set in the environment. I do not see your configuration, but the error above was generally due to a malformed yaml file.
I did try just replacing ${ELASTICSEACH_PASSWORD} with the password, no "", and that worked perfectly
Also tried raw text in env, thinking it was a secret related problem but still same error.
I have not tried locally but will do that durring the day.
In the mean time the daemon and input-config:
I solved it.
After reissuing the secret with a UTF8 encoding of the base64 encoded string it started working.
Don't know what standard mac base64 encode is using but it might be worthy investigate that format since that works with other applications in kubernetes.
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.