Error initializing publisher: 2 errors: open /etc/filebeat/cert.pem: no such file or directory

Turned out the secret was not loading the certificates correctly in the attached volume. Solved it by using ConfigMaps and specifying the certificates paths manually. Moreover, I made sure to explicitly attach cert.pem, key.pem and ca.pem.