KubernetesPodOperator, mounting a Secret as volume creates symlink. Application that needs to access secret (cert file) requires path to file and not symlink
I mounted a Secret
object to my KubernetesPodOperator
. Going inside the containers instance, if I do the ls -la
command, I can see the files but represented as symlinks:
lrwxrwxrwx 1 root root 25 Jun 2 11:49 my_cert.pem -> ..data/my_cert.pem
When the application runs, it will error out because it requires path to the physical file and not the symlink.
How do I mount the Secret object so that it will mount the physical file?
Even worse is that if I follow the symlink, I noticed the file size is zero.